[PATCH] D98101: [RISCV] Enable the LocalStackSlotAllocation pass support
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 22:03:59 PST 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp:291
+ // For RISC-V, The machine instructions that include a FrameIndex operand
+ // are load/store(exclude vector load/store), ADDI instructions.
+ if (!MI->mayLoad() && !MI->mayStore() && !(MI->getOpcode() == RISCV::ADDI))
----------------
I think vector load/store can have a frameindex operand. There's no immediate field so it will get split out into an ADDI in eliminateFrameIndex, but I think that happens later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98101/new/
https://reviews.llvm.org/D98101
More information about the llvm-commits
mailing list