[InstCombine] Remove one use restriction on the shift for calls to foldICmpAndShift.
authorCraig Topper <craig.topper@intel.com>
Tue, 26 Sep 2017 18:47:25 +0000 (18:47 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 26 Sep 2017 18:47:25 +0000 (18:47 +0000)
commit8bf622174d699e9a09bd7de2dc85b2c8fe38f176
treeb2a71514ca4a431e351bed6e53fa556fcb7ab44e
parentdffc55c1cd4cec1f165c097333eca792757d786b
[InstCombine] Remove one use restriction on the shift for calls to foldICmpAndShift.

If this transformation succeeds, we're going to remove our dependency on the shift by rewriting the and. So it doesn't matter how many uses the shift has.

This distributes the one use check to other transforms in foldICmpAndConstConst that do need it.

Differential Revision: https://reviews.llvm.org/D38206

llvm-svn: 314233
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp.ll