Optimize integral reciprocal (udiv 1, x and sdiv 1, x) to not use division. This...
authorNick Lewycky <nicholas@mxc.ca>
Wed, 14 May 2014 03:03:05 +0000 (03:03 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 14 May 2014 03:03:05 +0000 (03:03 +0000)
commit8f844490938e53e21040413d48d9eea926a06dcc
tree489d142f910fd78ac4ab94a2ff92df45534a213e
parentee8af3e2a03495f3d846900fab56be324a0af167
Optimize integral reciprocal (udiv 1, x and sdiv 1, x) to not use division. This fires exactly once in a clang bootstrap, but covers a few different results from cs.utah.edu/~regehr/souper/

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