[PATCH] D146245: [RISCV] Lower inline asm m with offset to register+imm.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 24 19:54:42 PDT 2023
craig.topper requested changes to this revision.
craig.topper added a comment.
This revision now requires changes to proceed.
LGTM
================
Comment at: llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp:185
+ const MachineOperand &AddrReg = MI->getOperand(OpNo);
+ assert(MI->getNumOperands() > OpNo + 1 && "Expanded additional operand");
+ const MachineOperand &DispImm = MI->getOperand(OpNo + 1);
----------------
Is "Expanded" here supposed to be "Expected"?
================
Comment at: llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp:2102
+ SDValue Op0, Op1;
+ assert(SelectAddrRegImm(Op, Op0, Op1) &&
+ "SelectAddrRegImm should always succeed");
----------------
The body of an `assert` is not executed in release builds. SelectAddRegImm will not be called.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146245/new/
https://reviews.llvm.org/D146245
More information about the llvm-commits
mailing list