[PATCH] D137233: Add support for the BranchRelaxation pass

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 16:17:08 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp:267
+  case LoongArch::PseudoBR:
+    return isInt<28>(BrOffset);
+  }
----------------
MC can handle relaxing these different immediate offset types; you probably only want to handle the > 28 bit case here (and even then there may be a better way to deal with it which I don't know about it, if you have dedicated registers for 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