[PATCH] D137233: [LoongArch] Add support for the BranchRelaxation pass
Xiaodong Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 19:55:56 PST 2022
XiaodongLoong added inline comments.
================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp:160
+
+ if (Opcode == TargetOpcode::INLINEASM) {
+ const MachineFunction *MF = MI.getParent()->getParent();
----------------
SixWeining wrote:
> We can directly use `MI.getOpcode()` here (at least for now).
Thanks! I changed it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137233/new/
https://reviews.llvm.org/D137233
More information about the llvm-commits
mailing list