@@ -1704,7 +1704,7 @@ bool DAGTypeLegalizer::PromoteIntegerOperand(SDNode *N, unsigned OpNo) {
1704
1704
1705
1705
// / PromoteSetCCOperands - Promote the operands of a comparison. This code is
1706
1706
// / shared among BR_CC, SELECT_CC, and SETCC handlers.
1707
- void DAGTypeLegalizer::PromoteSetCCOperands (SDValue &NewLHS, SDValue &NewRHS ,
1707
+ void DAGTypeLegalizer::PromoteSetCCOperands (SDValue &LHS, SDValue &RHS ,
1708
1708
ISD::CondCode CCCode) {
1709
1709
// We have to insert explicit sign or zero extends. Note that we could
1710
1710
// insert sign extends for ALL conditions. For those operations where either
@@ -1714,38 +1714,38 @@ void DAGTypeLegalizer::PromoteSetCCOperands(SDValue &NewLHS,SDValue &NewRHS,
1714
1714
default : llvm_unreachable (" Unknown integer comparison!" );
1715
1715
case ISD::SETEQ:
1716
1716
case ISD::SETNE: {
1717
- SDValue OpL = GetPromotedInteger (NewLHS );
1718
- SDValue OpR = GetPromotedInteger (NewRHS );
1717
+ SDValue OpL = GetPromotedInteger (LHS );
1718
+ SDValue OpR = GetPromotedInteger (RHS );
1719
1719
1720
1720
// We would prefer to promote the comparison operand with sign extension.
1721
1721
// If the width of OpL/OpR excluding the duplicated sign bits is no greater
1722
- // than the width of NewLHS/NewRH , we can avoid inserting real truncate
1722
+ // than the width of LHS/RHS , we can avoid inserting real truncate
1723
1723
// instruction, which is redundant eventually.
1724
1724
unsigned OpLEffectiveBits = DAG.ComputeMinSignedBits (OpL);
1725
1725
unsigned OpREffectiveBits = DAG.ComputeMinSignedBits (OpR);
1726
- if (OpLEffectiveBits <= NewLHS .getScalarValueSizeInBits () &&
1727
- OpREffectiveBits <= NewRHS .getScalarValueSizeInBits ()) {
1728
- NewLHS = OpL;
1729
- NewRHS = OpR;
1726
+ if (OpLEffectiveBits <= LHS .getScalarValueSizeInBits () &&
1727
+ OpREffectiveBits <= RHS .getScalarValueSizeInBits ()) {
1728
+ LHS = OpL;
1729
+ RHS = OpR;
1730
1730
} else {
1731
- NewLHS = SExtOrZExtPromotedInteger (NewLHS );
1732
- NewRHS = SExtOrZExtPromotedInteger (NewRHS );
1731
+ LHS = SExtOrZExtPromotedInteger (LHS );
1732
+ RHS = SExtOrZExtPromotedInteger (RHS );
1733
1733
}
1734
1734
break ;
1735
1735
}
1736
1736
case ISD::SETUGE:
1737
1737
case ISD::SETUGT:
1738
1738
case ISD::SETULE:
1739
1739
case ISD::SETULT:
1740
- NewLHS = SExtOrZExtPromotedInteger (NewLHS );
1741
- NewRHS = SExtOrZExtPromotedInteger (NewRHS );
1740
+ LHS = SExtOrZExtPromotedInteger (LHS );
1741
+ RHS = SExtOrZExtPromotedInteger (RHS );
1742
1742
break ;
1743
1743
case ISD::SETGE:
1744
1744
case ISD::SETGT:
1745
1745
case ISD::SETLT:
1746
1746
case ISD::SETLE:
1747
- NewLHS = SExtPromotedInteger (NewLHS );
1748
- NewRHS = SExtPromotedInteger (NewRHS );
1747
+ LHS = SExtPromotedInteger (LHS );
1748
+ RHS = SExtPromotedInteger (RHS );
1749
1749
break ;
1750
1750
}
1751
1751
}
0 commit comments