@@ -1645,11 +1645,11 @@ bool TargetLowering::SimplifyDemandedBits(
1645
1645
break ;
1646
1646
}
1647
1647
case ISD::SELECT:
1648
- if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, Known, TLO ,
1649
- Depth + 1 ))
1648
+ if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, DemandedElts ,
1649
+ Known, TLO, Depth + 1 ))
1650
1650
return true ;
1651
- if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, Known2, TLO ,
1652
- Depth + 1 ))
1651
+ if (SimplifyDemandedBits (Op.getOperand (1 ), DemandedBits, DemandedElts ,
1652
+ Known2, TLO, Depth + 1 ))
1653
1653
return true ;
1654
1654
assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1655
1655
assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
@@ -1675,11 +1675,11 @@ bool TargetLowering::SimplifyDemandedBits(
1675
1675
Known = Known.intersectWith (Known2);
1676
1676
break ;
1677
1677
case ISD::SELECT_CC:
1678
- if (SimplifyDemandedBits (Op.getOperand (3 ), DemandedBits, Known, TLO ,
1679
- Depth + 1 ))
1678
+ if (SimplifyDemandedBits (Op.getOperand (3 ), DemandedBits, DemandedElts ,
1679
+ Known, TLO, Depth + 1 ))
1680
1680
return true ;
1681
- if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, Known2, TLO ,
1682
- Depth + 1 ))
1681
+ if (SimplifyDemandedBits (Op.getOperand (2 ), DemandedBits, DemandedElts ,
1682
+ Known2, TLO, Depth + 1 ))
1683
1683
return true ;
1684
1684
assert (!Known.hasConflict () && " Bits known to be one AND zero?" );
1685
1685
assert (!Known2.hasConflict () && " Bits known to be one AND zero?" );
0 commit comments