@@ -1436,11 +1436,9 @@ bool TargetLowering::SimplifyDemandedBits(
14361436 if (SimplifyDemandedBits (Op1, DemandedBits, DemandedElts, Known, TLO,
14371437 Depth + 1 ))
14381438 return true ;
1439- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
14401439 if (SimplifyDemandedBits (Op0, ~Known.Zero & DemandedBits, DemandedElts,
14411440 Known2, TLO, Depth + 1 ))
14421441 return true ;
1443- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
14441442
14451443 // If all of the demanded bits are known one on one side, return the other.
14461444 // These bits cannot contribute to the result of the 'and'.
@@ -1488,7 +1486,7 @@ bool TargetLowering::SimplifyDemandedBits(
14881486 }
14891487 return true ;
14901488 }
1491- assert (!Known. hasConflict () && " Bits known to be one AND zero? " );
1489+
14921490 if (SimplifyDemandedBits (Op0, ~Known.One & DemandedBits, DemandedElts,
14931491 Known2, TLO, Depth + 1 )) {
14941492 if (Flags.hasDisjoint ()) {
@@ -1497,7 +1495,6 @@ bool TargetLowering::SimplifyDemandedBits(
14971495 }
14981496 return true ;
14991497 }
1500- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
15011498
15021499 // If all of the demanded bits are known zero on one side, return the other.
15031500 // These bits cannot contribute to the result of the 'or'.
@@ -1563,11 +1560,9 @@ bool TargetLowering::SimplifyDemandedBits(
15631560 if (SimplifyDemandedBits (Op1, DemandedBits, DemandedElts, Known, TLO,
15641561 Depth + 1 ))
15651562 return true ;
1566- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
15671563 if (SimplifyDemandedBits (Op0, DemandedBits, DemandedElts, Known2, TLO,
15681564 Depth + 1 ))
15691565 return true ;
1570- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
15711566
15721567 // If all of the demanded bits are known zero on one side, return the other.
15731568 // These bits cannot contribute to the result of the 'xor'.
@@ -1663,8 +1658,6 @@ bool TargetLowering::SimplifyDemandedBits(
16631658 if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, DemandedElts,
16641659 Known2, TLO, Depth + 1 ))
16651660 return true ;
1666- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1667- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
16681661
16691662 // If the operands are constants, see if we can simplify them.
16701663 if (ShrinkDemandedConstant (Op, DemandedBits, DemandedElts, TLO))
@@ -1680,8 +1673,6 @@ bool TargetLowering::SimplifyDemandedBits(
16801673 if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, DemandedElts,
16811674 Known2, TLO, Depth + 1 ))
16821675 return true ;
1683- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1684- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
16851676
16861677 // Only known if known in both the LHS and RHS.
16871678 Known = Known.intersectWith (Known2);
@@ -1693,8 +1684,6 @@ bool TargetLowering::SimplifyDemandedBits(
16931684 if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, DemandedElts,
16941685 Known2, TLO, Depth + 1 ))
16951686 return true ;
1696- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1697- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
16981687
16991688 // If the operands are constants, see if we can simplify them.
17001689 if (ShrinkDemandedConstant (Op, DemandedBits, DemandedElts, TLO))
@@ -1819,7 +1808,6 @@ bool TargetLowering::SimplifyDemandedBits(
18191808 }
18201809 return true ;
18211810 }
1822- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
18231811 Known.Zero <<= ShAmt;
18241812 Known.One <<= ShAmt;
18251813 // low bits known zero.
@@ -1993,7 +1981,6 @@ bool TargetLowering::SimplifyDemandedBits(
19931981 if (SimplifyDemandedBits (Op0, InDemandedMask, DemandedElts, Known, TLO,
19941982 Depth + 1 ))
19951983 return true ;
1996- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
19971984 Known.Zero .lshrInPlace (ShAmt);
19981985 Known.One .lshrInPlace (ShAmt);
19991986 // High bits known zero.
@@ -2090,7 +2077,6 @@ bool TargetLowering::SimplifyDemandedBits(
20902077 if (SimplifyDemandedBits (Op0, InDemandedMask, DemandedElts, Known, TLO,
20912078 Depth + 1 ))
20922079 return true ;
2093- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
20942080 Known.Zero .lshrInPlace (ShAmt);
20952081 Known.One .lshrInPlace (ShAmt);
20962082
@@ -2385,7 +2371,6 @@ bool TargetLowering::SimplifyDemandedBits(
23852371 if (SimplifyDemandedBits (Op0, InputDemandedBits, DemandedElts, Known, TLO,
23862372 Depth + 1 ))
23872373 return true ;
2388- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
23892374
23902375 // If the sign bit of the input is known set or clear, then we know the
23912376 // top bits of the result.
@@ -2458,7 +2443,6 @@ bool TargetLowering::SimplifyDemandedBits(
24582443 }
24592444 return true ;
24602445 }
2461- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
24622446 assert (Known.getBitWidth () == InBits && " Src width has changed?" );
24632447 Known = Known.zext (BitWidth);
24642448
@@ -2508,7 +2492,6 @@ bool TargetLowering::SimplifyDemandedBits(
25082492 if (SimplifyDemandedBits (Src, InDemandedBits, InDemandedElts, Known, TLO,
25092493 Depth + 1 ))
25102494 return true ;
2511- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
25122495 assert (Known.getBitWidth () == InBits && " Src width has changed?" );
25132496
25142497 // If the sign bit is known one, the top bits match.
@@ -2554,7 +2537,6 @@ bool TargetLowering::SimplifyDemandedBits(
25542537 if (SimplifyDemandedBits (Src, InDemandedBits, InDemandedElts, Known, TLO,
25552538 Depth + 1 ))
25562539 return true ;
2557- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
25582540 assert (Known.getBitWidth () == InBits && " Src width has changed?" );
25592541 Known = Known.anyext (BitWidth);
25602542
@@ -2620,7 +2602,6 @@ bool TargetLowering::SimplifyDemandedBits(
26202602 break ;
26212603 }
26222604
2623- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
26242605 break ;
26252606 }
26262607 case ISD::AssertZext: {
@@ -2631,7 +2612,6 @@ bool TargetLowering::SimplifyDemandedBits(
26312612 if (SimplifyDemandedBits (Op.getOperand (0 ), ~InMask | DemandedBits, Known,
26322613 TLO, Depth + 1 ))
26332614 return true ;
2634- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
26352615
26362616 Known.Zero |= ~InMask;
26372617 Known.One &= (~Known.Zero );
0 commit comments