[InstCombine] Make the (A|B)^B -> A & ~B transform code consistent with the very...
authorCraig Topper <craig.topper@gmail.com>
Mon, 10 Apr 2017 06:53:21 +0000 (06:53 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 10 Apr 2017 06:53:21 +0000 (06:53 +0000)
commit4738321f0c7cfc8a94c49e420fa0b7f1c1f8421a
tree84674e41416e8108046a79496bf2daf0f7fe5e8a
parent4f16d82d6b572647ae281289f96a5068430e1581
[InstCombine] Make the (A|B)^B -> A & ~B transform code consistent with the very similar (A&B)^B -> ~A & B code. This should be NFC except for the addition of hasOneUse check.

I think this code is still overly complicated and should use matchers, but first I wanted to make it consistent.

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