Skip to content

Commit b40acf8

Browse files
Update llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Co-authored-by: Paul Walker <[email protected]>
1 parent d67e32b commit b40acf8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,9 +3327,7 @@ void DAGTypeLegalizer::ExpandIntRes_SETCC(SDNode *N, SDValue &Lo, SDValue &Hi) {
33273327
// Taking the same approach as ScalarizeVecRes_SETCC
33283328
SDValue Res = DAG.getNode(ISD::SETCC, DL, NewVT, LHS, RHS, N->getOperand(2));
33293329

3330-
ISD::NodeType ExtendCode =
3331-
TargetLowering::getExtendForContent(TLI.getBooleanContents(NewVT));
3332-
Res = DAG.getExtOrTrunc(Res, DL, N->getValueType(0), ExtendCode);
3330+
Res = DAG.getBoolExtOrTrunc(Res, DL, N->getValueType(0), NewVT);
33333331
SplitInteger(Res, Lo, Hi);
33343332
}
33353333

0 commit comments

Comments
 (0)