]> granicus.if.org Git - llvm/commit
[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)
commit43b62b6cb88b87a7e1d734ce37ca65e604b54e1c
treef966261da65545dbc775b1ebd18bd14bd1e35e98
parent80b5f5982aff5d0e06c51fc0e2413b2675152072
[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

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