[PATCH] D42600: [CodeGen][Shrink-wrap]split restore point

Sushant Gokhale via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 02:19:20 PDT 2023


sushgokh added inline comments.


================
Comment at: llvm/lib/CodeGen/ShrinkWrap.cpp:884-885
+    return false;
+  if (!ArePointsInteresting())
+    return false;
 
----------------
thegameg wrote:
> nickdesaulniers wrote:
> > should we still return `false` here if if `Changed == true`?
> > 
> > Am I reading this right? Did the previous version of `ShrinkWrap::runOnMachineFunction` never return `true`?
> Correct, the previous version doesn't change the code, it just tells `PrologEpilogInserter` where to place the prologue/epilogue through `MachineFrameInfo`.
> 
> I guess here we should return true if we do any edge-splitting.
@nickdesaulniers I think no need of returning true if Changed == true because dominance/post-dominance relations are updated after post-shrinking. Is there any other thing that needs updation ?


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

https://reviews.llvm.org/D42600



More information about the llvm-commits mailing list