teach instsimplify to transform (X / Y) * Y to X
authorChris Lattner <sabre@nondot.org>
Sun, 6 Feb 2011 22:05:31 +0000 (22:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Feb 2011 22:05:31 +0000 (22:05 +0000)
commitc6ee9181a51fdfa3c07e1e53695681c55aa98ce4
tree1b11913f91b212aa9a03e4a16ee307d609a9a7c2
parentc35a44d3d73a429e59fb3044ee723db0511862f2
teach instsimplify to transform (X / Y) * Y to X
when the div is an exact udiv.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/reassociate.ll