Enhance analysis of srem.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 12 Jul 2008 05:04:38 +0000 (05:04 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 12 Jul 2008 05:04:38 +0000 (05:04 +0000)
commit3ac9e109b24eaae482eb914d970ba7980f462925
treea9bfc7d343de39ae7071ddb5aac65db7c7c0bab3
parent5330192ab59d65f285799ff5a9acd67d27417a56
Enhance analysis of srem.

Remove dead code analyzing urem. 'urem' of power-of-2 is canonicalized to an
'and' instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-07-11-RemAnd.ll [new file with mode: 0644]