Skip to content

Commit a9d9f3d

Browse files
committed
Address comment
1 parent c610dbb commit a9d9f3d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,8 @@ bool RISCVInstructionSelector::selectIntrinsicWithSideEffects(
832832
auto PassthruReg = I.getOperand(CurOp++).getReg();
833833
SrcOps.push_back(PassthruReg);
834834
} else {
835-
SrcOps.push_back(Register(RISCV::NoRegister));
835+
// Use NoRegister if there is no specified passthru.
836+
SrcOps.push_back(Register());
836837
}
837838
LLT IndexVT;
838839
addVectorLoadStoreOperands(I, SrcOps, CurOp, IsMasked, true, &IndexVT);
@@ -842,8 +843,8 @@ bool RISCVInstructionSelector::selectIntrinsicWithSideEffects(
842843
RISCVTargetLowering::getLMUL(getMVTForLLT(IndexVT));
843844
unsigned IndexLog2EEW = Log2_32(IndexVT.getScalarSizeInBits());
844845
if (IndexLog2EEW == 6 && !Subtarget->is64Bit()) {
845-
report_fatal_error("The V extension does not support EEW=64 for index "
846-
"values when XLEN=32");
846+
reportFatalUsageError("The V extension does not support EEW=64 for index "
847+
"values when XLEN=32");
847848
}
848849
const RISCV::VLX_VSXPseudo *P = RISCV::getVLXPseudo(
849850
IsMasked, IsOrdered, IndexLog2EEW, static_cast<unsigned>(LMUL),
@@ -940,8 +941,8 @@ bool RISCVInstructionSelector::selectIntrinsicWithSideEffects(
940941
RISCVTargetLowering::getLMUL(getMVTForLLT(IndexVT));
941942
unsigned IndexLog2EEW = Log2_32(IndexVT.getScalarSizeInBits());
942943
if (IndexLog2EEW == 6 && !Subtarget->is64Bit()) {
943-
report_fatal_error("The V extension does not support EEW=64 for index "
944-
"values when XLEN=32");
944+
reportFatalUsageError("The V extension does not support EEW=64 for index "
945+
"values when XLEN=32");
945946
}
946947
const RISCV::VLX_VSXPseudo *P = RISCV::getVSXPseudo(
947948
IsMasked, IsOrdered, IndexLog2EEW, static_cast<unsigned>(LMUL),

0 commit comments

Comments
 (0)