Don't try to simplify urem and srem using arithmetic rules that don't work
authorNick Lewycky <nicholas@mxc.ca>
Thu, 6 Mar 2008 06:48:30 +0000 (06:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 6 Mar 2008 06:48:30 +0000 (06:48 +0000)
commitc1a2a612019ea1c764f3ccb5959104aea3d4df2f
tree76a41bfda9334dfc749c6ac1ad1ff2a370950834
parent4cb8bd8effdc999128d9ab82e1b2fe860b01c556
Don't try to simplify urem and srem using arithmetic rules that don't work
under modulo (overflow). Fixes PR1933.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/rem.ll