[InstCombine] Pull simple checks above a more complicated one. NFCI
authorCraig Topper <craig.topper@intel.com>
Tue, 21 Aug 2018 19:17:00 +0000 (19:17 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 21 Aug 2018 19:17:00 +0000 (19:17 +0000)
commit3d8fe39ca7360b8fcb3558cf5625ad7525933256
tree98bff46986602f4bf815912f748e294da21338b3
parent9583d4fa03e8010ba6f80302940b548084d8c477
[InstCombine] Pull simple checks above a more complicated one. NFCI

I'm assuming its easier to make sure the RHS of an XOR is all ones than it is to check for the many select patterns we have. So lets check that first. Same with the one use check.

llvm-svn: 340321
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp