Skip to content

Commit e3dc226

Browse files
committed
remove unnecessary bitcast in constant eval
1 parent 70833d5 commit e3dc226

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,8 +2162,7 @@ SDValue NVPTXTargetLowering::LowerBITCAST(SDValue Op, SelectionDAG &DAG) const {
21622162
// cast two constants
21632163
APInt Value(64, 0);
21642164
Value = CastToAPInt(BVOp0) | CastToAPInt(BVOp1).shl(32);
2165-
SDValue Const = DAG.getConstant(Value, DL, MVT::i64);
2166-
return DAG.getBitcast(ToVT, Const);
2165+
return DAG.getConstant(Value, DL, MVT::i64);
21672166
}
21682167

21692168
// otherwise build an i64

0 commit comments

Comments
 (0)