]> granicus.if.org Git - llvm/commit
Revert "[InstCombine] [InstCombine] Canonicalize (-X s/ Y) to -(X s/ Y)."
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 9 Apr 2019 18:32:38 +0000 (18:32 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 9 Apr 2019 18:32:38 +0000 (18:32 +0000)
commit338bf21006b7b80453ab48cdde669d90d0c3cc3c
tree046d5ade0849a066976ef09972389e6dcae8e3a3
parentb9767f7ec007889b109b55cf76593206705077f7
Revert "[InstCombine] [InstCombine] Canonicalize (-X s/ Y) to -(X s/ Y)."

This reverts commit 1383a9168948aabfd827220c9445ce0ce5765800.

sdiv-canonicalize.ll fails after this revision. The fold needs to be
moved outside the branch handling constant operands. However when this
is done there are further test changes, so I'm reverting this in the
meantime.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358026 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/sdiv-canonicalize.ll