[InstCombine] add xor+not folds
authorSanjay Patel <spatel@rotateright.com>
Thu, 6 Sep 2018 16:23:40 +0000 (16:23 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 6 Sep 2018 16:23:40 +0000 (16:23 +0000)
commit93bd15a00593286ebbd904b66a4b1575ccce7762
tree3c7b6d7beaa482d1408ef5d95cb184233e629abc
parent29200611055f49a0d37243caa5f8bba1df9d57a6
[InstCombine] add xor+not folds

This fold is needed to avoid a regression when we try
to recommit rL300977.
We can't see the most basic win currently because
demanded bits changes the patterns:
https://rise4fun.com/Alive/plpp

llvm-svn: 341559
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/xor.ll