[PATCH] D137233: [LoongArch] Add support for the BranchRelaxation pass

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 6 19:21:57 PST 2022


SixWeining accepted this revision.
SixWeining added a comment.
This revision is now accepted and ready to land.

LGTM except a small nit.



================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp:160
+
+  if (Opcode == TargetOpcode::INLINEASM) {
+    const MachineFunction *MF = MI.getParent()->getParent();
----------------
We can directly use `MI.getOpcode()` here (at least for now).


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