[TargetLowering] Simplify one of the special cases in SimplifyDemandedBits for XOR...
authorCraig Topper <craig.topper@intel.com>
Sun, 12 Aug 2018 06:52:03 +0000 (06:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 12 Aug 2018 06:52:03 +0000 (06:52 +0000)
commit60177f1aeebf683dd3eec5c09c0cfdb292223898
treed065e3330f43de6a6d3a5efc7391fb11d3ea88fc
parentd11220600496a8ed14cbd82d71e5736e910d4728
[TargetLowering] Simplify one of the special cases in SimplifyDemandedBits for XOR. NFCI

We were checking for all bits being Known by checking Known.Zero|Known.One, but if all the bits are known then the value should be a Constant and we can just check for that instead.

llvm-svn: 339509
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp