Optimize (x/C)*C to x if the division is exact.
authorDan Gohman <gohman@apple.com>
Wed, 12 Aug 2009 16:33:09 +0000 (16:33 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 12 Aug 2009 16:33:09 +0000 (16:33 +0000)
commitfa94b948d9a0aaaad98901815e56b676803ad259
treefe5f5ff724d6bd1e9a39ed0c49b4d4148856e70d
parent2df6e6467f679984e98612e695682fcc834bd95f
Optimize (x/C)*C to x if the division is exact.

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