[InstCombine] Remove explicit code for folding (xor(zext(cmp)), 1) and (xor(sext...
authorCraig Topper <craig.topper@intel.com>
Wed, 2 Aug 2017 20:30:27 +0000 (20:30 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 2 Aug 2017 20:30:27 +0000 (20:30 +0000)
commit4068e4eec5c63b8ee1dfc92c6c74c9c12f4a592c
tree54b6f5f5043d483e268bfd8436b93f0e3c67a25f
parentc9da8f0f64671557f8f29af01a32f22878cfdaa9
[InstCombine] Remove explicit code for folding (xor(zext(cmp)), 1) and (xor(sext(cmp)), -1) to ext(!cmp).

As far as I can tell this should be handled by foldCastedBitwiseLogic which is called later in visitXor.

Differential Revision: https://reviews.llvm.org/D36214

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