[PATCH] D150558: [PowerPC] Avoid RegScavenger::forward in PPCFrameLowering

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 05:28:43 PDT 2023


foad added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCFrameLowering.cpp:469-473
-    if (MBBI == MBB->end())
-      MBBI = std::prev(MBBI);
-
-    if (MBBI != MBB->begin())
-      RS.forward(MBBI);
----------------
This code seems confused to me. I tried to follow (and document) the intent of it, rather than the exact logic here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150558



More information about the llvm-commits mailing list