Skip to content

Commit 5629ff1

Browse files
Cleanup use of DL
1 parent 9fe8fdb commit 5629ff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,10 +2319,10 @@ NVPTXTargetLowering::LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const {
23192319
// mov.b32 %r2, 0x40003C00
23202320
SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
23212321
SelectionDAG &DAG) const {
2322-
SDLoc DL(Op);
23232322
EVT VT = Op->getValueType(0);
23242323
if (!(Isv2x16VT(VT) || VT == MVT::v4i8))
23252324
return Op;
2325+
SDLoc DL(Op);
23262326

23272327
if (!llvm::all_of(Op->ops(), [](SDValue Operand) {
23282328
return Operand->isUndef() || isa<ConstantSDNode>(Operand) ||
@@ -2379,8 +2379,8 @@ SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
23792379
} else {
23802380
llvm_unreachable("Unsupported type");
23812381
}
2382-
SDValue Const = DAG.getConstant(Value, SDLoc(Op), MVT::i32);
2383-
return DAG.getNode(ISD::BITCAST, SDLoc(Op), Op->getValueType(0), Const);
2382+
SDValue Const = DAG.getConstant(Value, DL, MVT::i32);
2383+
return DAG.getNode(ISD::BITCAST, DL, Op->getValueType(0), Const);
23842384
}
23852385

23862386
SDValue NVPTXTargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,

0 commit comments

Comments
 (0)