OSDN Git Service

[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)
commit2f00acbb71c83bf9685cbef3e70b9474c793ffdb
tree8e58d8e0b83e266d37e323ee6671c253873c98ac
parent8be8c4ddf621595ca865720acf4d0d721a467edf
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340321 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp