commit | 1a4cc6a638b20aeecf51cbed5bad0d278f5bd51c | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Mon Apr 10 06:53:21 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Mon Apr 10 06:53:21 2017 +0000 |
tree | 7284b472159b058e87e935c0382addaf00f4c147 | |
parent | 60e8e12279b85a3c41477fb3bdb78cae6225cd50 [diff] |
[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