[PATCH] D123264: [RISCV] Pre-RA expand pseudos pass
Hsiangkai Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 15 02:29:02 PDT 2022
HsiangKai added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/MachineInstr.h:1212
+ return isLabel() || isCFIInstruction() || getPreInstrSymbol() ||
+ getPostInstrSymbol();
+ }
----------------
luismarques wrote:
> HsiangKai wrote:
> > Is it enough to only add checking of getPreInstrSymbol()?
> What do you mean, enough for what? (This patch also checks `getPostInstrSymbol()`).
> In my testing that was enough to ensure that the label always pointed to the correct upper instruction, but feedback about this is welcome.
Just curious why checking getPostInstrSymbol() here. There is no setPostInstrSymbol() in this patch.
================
Comment at: llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp:101
switch (MBBI->getOpcode()) {
case RISCV::PseudoLLA:
return expandLoadLocalAddress(MBB, MBBI, NextMBBI);
----------------
Do we still need to handle PseudoLLA in RISCVExpandPseudo?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123264/new/
https://reviews.llvm.org/D123264
More information about the llvm-commits
mailing list