Skip to content

Commit 5e0c7bf

Browse files
committed
fixup! [WIP][RISCV] Merge GPRPair and GPRF64Pair
1 parent 95fc8c4 commit 5e0c7bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,15 +977,14 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
977977

978978
if (!SDValue(Node, 0).use_empty()) {
979979
SDValue Lo = CurDAG->getTargetExtractSubreg(RISCV::sub_gpr_even, DL,
980-
Node->getSimpleValueType(0),
980+
Node->getValueType(0),
981981
Node->getOperand(0));
982982
ReplaceUses(SDValue(Node, 0), Lo);
983983
}
984984

985985
if (!SDValue(Node, 1).use_empty()) {
986-
SDValue Hi = CurDAG->getTargetExtractSubreg(RISCV::sub_gpr_odd, DL,
987-
Node->getSimpleValueType(1),
988-
Node->getOperand(0));
986+
SDValue Hi = CurDAG->getTargetExtractSubreg(
987+
RISCV::sub_gpr_odd, DL, Node->getValueType(1), Node->getOperand(0));
989988
ReplaceUses(SDValue(Node, 1), Hi);
990989
}
991990

0 commit comments

Comments
 (0)