Instcombine x-((x/y)*y) into a remainder operator.
authorDan Gohman <gohman@apple.com>
Mon, 17 Sep 2007 17:31:57 +0000 (17:31 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 17 Sep 2007 17:31:57 +0000 (17:31 +0000)
commit5d066ff7f0845abd224a4b60cd9bf9f7516b04a6
tree532b1fb10d73efd4bccdcdbe5bbe0cfc9060da4f
parentbaa2fa5823fe4598d158794711d88af21976c182
Instcombine x-((x/y)*y) into a remainder operator.

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