OSDN Git Service

[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)
commit1a4cc6a638b20aeecf51cbed5bad0d278f5bd51c
tree7284b472159b058e87e935c0382addaf00f4c147
parent60e8e12279b85a3c41477fb3bdb78cae6225cd50
[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.

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