Add combine: X sdiv (1 << Y) -> X udiv (1 << Y) when X doesn't have the
authorEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 09:53:21 +0000 (09:53 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 18 Jul 2009 09:53:21 +0000 (09:53 +0000)
commit8be17397c08cf768f33016f42e6a75a3f214d331
tree1972f98ba5af2f77dc9957c02efb1fc0e80874e1
parent191a0aee4f58f86d697e9eed57205a59e3920b4d
Add combine: X sdiv (1 << Y) -> X udiv (1 << Y) when X doesn't have the
sign bit set.

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