OSDN Git Service

[InstCombine] add/move folds for [not]-xor
authorSanjay Patel <spatel@rotateright.com>
Sun, 23 Apr 2017 22:00:02 +0000 (22:00 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 23 Apr 2017 22:00:02 +0000 (22:00 +0000)
commitf7a9048833e12a3586d4bac44ee62897d6e093e7
tree7efceaa518f9f58cd5010a1dd8e874075cdbd688
parent33d67f13484fb044641b65eb1e3d4be8f6b72f18
[InstCombine] add/move folds for [not]-xor

We handled all of the commuted variants for plain xor already,
although they were scattered around and sometimes folded less
efficiently using distributive laws. We had no folds for not-xor.

Handling all of these patterns consistently is part of trying to
reinstate:
https://reviews.llvm.org/rL300977

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301144 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/and-or-not.ll