@@ -1436,11 +1436,9 @@ bool TargetLowering::SimplifyDemandedBits(
1436
1436
if (SimplifyDemandedBits (Op1, DemandedBits, DemandedElts, Known, TLO,
1437
1437
Depth + 1 ))
1438
1438
return true ;
1439
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1440
1439
if (SimplifyDemandedBits (Op0, ~Known.Zero & DemandedBits, DemandedElts,
1441
1440
Known2, TLO, Depth + 1 ))
1442
1441
return true ;
1443
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1444
1442
1445
1443
// If all of the demanded bits are known one on one side, return the other.
1446
1444
// These bits cannot contribute to the result of the 'and'.
@@ -1488,7 +1486,7 @@ bool TargetLowering::SimplifyDemandedBits(
1488
1486
}
1489
1487
return true ;
1490
1488
}
1491
- assert (!Known. hasConflict () && " Bits known to be one AND zero? " );
1489
+
1492
1490
if (SimplifyDemandedBits (Op0, ~Known.One & DemandedBits, DemandedElts,
1493
1491
Known2, TLO, Depth + 1 )) {
1494
1492
if (Flags.hasDisjoint ()) {
@@ -1497,7 +1495,6 @@ bool TargetLowering::SimplifyDemandedBits(
1497
1495
}
1498
1496
return true ;
1499
1497
}
1500
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1501
1498
1502
1499
// If all of the demanded bits are known zero on one side, return the other.
1503
1500
// These bits cannot contribute to the result of the 'or'.
@@ -1563,11 +1560,9 @@ bool TargetLowering::SimplifyDemandedBits(
1563
1560
if (SimplifyDemandedBits (Op1, DemandedBits, DemandedElts, Known, TLO,
1564
1561
Depth + 1 ))
1565
1562
return true ;
1566
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1567
1563
if (SimplifyDemandedBits (Op0, DemandedBits, DemandedElts, Known2, TLO,
1568
1564
Depth + 1 ))
1569
1565
return true ;
1570
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1571
1566
1572
1567
// If all of the demanded bits are known zero on one side, return the other.
1573
1568
// These bits cannot contribute to the result of the 'xor'.
@@ -1663,8 +1658,6 @@ bool TargetLowering::SimplifyDemandedBits(
1663
1658
if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, DemandedElts,
1664
1659
Known2, TLO, Depth + 1 ))
1665
1660
return true ;
1666
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1667
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1668
1661
1669
1662
// If the operands are constants, see if we can simplify them.
1670
1663
if (ShrinkDemandedConstant (Op, DemandedBits, DemandedElts, TLO))
@@ -1680,8 +1673,6 @@ bool TargetLowering::SimplifyDemandedBits(
1680
1673
if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, DemandedElts,
1681
1674
Known2, TLO, Depth + 1 ))
1682
1675
return true ;
1683
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1684
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1685
1676
1686
1677
// Only known if known in both the LHS and RHS.
1687
1678
Known = Known.intersectWith (Known2);
@@ -1693,8 +1684,6 @@ bool TargetLowering::SimplifyDemandedBits(
1693
1684
if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, DemandedElts,
1694
1685
Known2, TLO, Depth + 1 ))
1695
1686
return true ;
1696
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1697
- assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
1698
1687
1699
1688
// If the operands are constants, see if we can simplify them.
1700
1689
if (ShrinkDemandedConstant (Op, DemandedBits, DemandedElts, TLO))
@@ -1819,7 +1808,6 @@ bool TargetLowering::SimplifyDemandedBits(
1819
1808
}
1820
1809
return true ;
1821
1810
}
1822
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1823
1811
Known.Zero <<= ShAmt;
1824
1812
Known.One <<= ShAmt;
1825
1813
// low bits known zero.
@@ -1993,7 +1981,6 @@ bool TargetLowering::SimplifyDemandedBits(
1993
1981
if (SimplifyDemandedBits (Op0, InDemandedMask, DemandedElts, Known, TLO,
1994
1982
Depth + 1 ))
1995
1983
return true ;
1996
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1997
1984
Known.Zero .lshrInPlace (ShAmt);
1998
1985
Known.One .lshrInPlace (ShAmt);
1999
1986
// High bits known zero.
@@ -2090,7 +2077,6 @@ bool TargetLowering::SimplifyDemandedBits(
2090
2077
if (SimplifyDemandedBits (Op0, InDemandedMask, DemandedElts, Known, TLO,
2091
2078
Depth + 1 ))
2092
2079
return true ;
2093
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2094
2080
Known.Zero .lshrInPlace (ShAmt);
2095
2081
Known.One .lshrInPlace (ShAmt);
2096
2082
@@ -2385,7 +2371,6 @@ bool TargetLowering::SimplifyDemandedBits(
2385
2371
if (SimplifyDemandedBits (Op0, InputDemandedBits, DemandedElts, Known, TLO,
2386
2372
Depth + 1 ))
2387
2373
return true ;
2388
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2389
2374
2390
2375
// If the sign bit of the input is known set or clear, then we know the
2391
2376
// top bits of the result.
@@ -2458,7 +2443,6 @@ bool TargetLowering::SimplifyDemandedBits(
2458
2443
}
2459
2444
return true ;
2460
2445
}
2461
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2462
2446
assert (Known.getBitWidth () == InBits && " Src width has changed?" );
2463
2447
Known = Known.zext (BitWidth);
2464
2448
@@ -2508,7 +2492,6 @@ bool TargetLowering::SimplifyDemandedBits(
2508
2492
if (SimplifyDemandedBits (Src, InDemandedBits, InDemandedElts, Known, TLO,
2509
2493
Depth + 1 ))
2510
2494
return true ;
2511
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2512
2495
assert (Known.getBitWidth () == InBits && " Src width has changed?" );
2513
2496
2514
2497
// If the sign bit is known one, the top bits match.
@@ -2554,7 +2537,6 @@ bool TargetLowering::SimplifyDemandedBits(
2554
2537
if (SimplifyDemandedBits (Src, InDemandedBits, InDemandedElts, Known, TLO,
2555
2538
Depth + 1 ))
2556
2539
return true ;
2557
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2558
2540
assert (Known.getBitWidth () == InBits && " Src width has changed?" );
2559
2541
Known = Known.anyext (BitWidth);
2560
2542
@@ -2620,7 +2602,6 @@ bool TargetLowering::SimplifyDemandedBits(
2620
2602
break ;
2621
2603
}
2622
2604
2623
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2624
2605
break ;
2625
2606
}
2626
2607
case ISD::AssertZext: {
@@ -2631,7 +2612,6 @@ bool TargetLowering::SimplifyDemandedBits(
2631
2612
if (SimplifyDemandedBits (Op.getOperand (0 ), ~InMask | DemandedBits, Known,
2632
2613
TLO, Depth + 1 ))
2633
2614
return true ;
2634
- assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
2635
2615
2636
2616
Known.Zero |= ~InMask;
2637
2617
Known.One &= (~Known.Zero );
0 commit comments