[PATCH] D136074: [LoongArch] Stack realignment support

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 02:08:54 PDT 2022


SixWeining accepted this revision.
SixWeining added a comment.

LGTM except one nit.



================
Comment at: llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp:190
+    if (RI->hasStackRealignment(MF)) {
+      Align MaxAlignment = MFI.getMaxAlign();
+      unsigned ShiftAmount = Log2(MaxAlignment);
----------------
Inline one-time-used variable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136074/new/

https://reviews.llvm.org/D136074



More information about the llvm-commits mailing list