[InstCombine] Shift amount reassociation in bittest: drop pointless one-use restriction
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 10 Aug 2019 19:28:44 +0000 (19:28 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 10 Aug 2019 19:28:44 +0000 (19:28 +0000)
commit64fe806c4e11d90d8abaed65b659673be677b856
treefc22596f13fd15811777a0fa1ac62d64964e87f2
parent45e9990c02c33e76e67754b70770d8d803569ebc
[InstCombine] Shift amount reassociation in bittest: drop pointless one-use restriction

That one-use restriction is not needed for correctness - we have already
ensured that one of the shifts will go away, so we know we won't increase
the instruction count. So there is no need for that restriction.

llvm-svn: 368518
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/shift-amount-reassociation-in-bittest.ll