Implement InstCombine/sub.ll:test15: X % -Y === X % Y
authorChris Lattner <sabre@nondot.org>
Tue, 6 Jul 2004 07:01:22 +0000 (07:01 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Jul 2004 07:01:22 +0000 (07:01 +0000)
commit5b73c08896ce402212993ca938f64b056f68e0a1
tree7e2c0bd485b3d266f007e20d7d3edcb8c74729ea
parentf77afbb2756ab4eb1c25d2e799e87158df757acf
Implement InstCombine/sub.ll:test15:  X % -Y === X % Y

Also, remove X % -1 = 0, because it's not true for unsigneds, and the
signed case is superceeded by this new handling.

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