llvm-svn: 299618
This commit is contained in:
Craig Topper 2017-04-06 04:02:28 +00:00
parent 0d622a4bf9
commit faf5a8553c
1 changed files with 3 additions and 0 deletions

View File

@ -791,6 +791,9 @@ bool TargetLowering::SimplifyDemandedBits(SDValue Op,
// TODO: Should we check for other forms of sign-bit comparisons?
// Examples: X <= -1, X >= 0
}
if (getBooleanContents(Op.getOperand(0).getValueType()) ==
BooleanContent::ZeroOrOneBooleanContent && BitWidth > 1)
KnownZero.setBitsFrom(1);
break;
}
case ISD::SHL: