[PATCH] D114545: [CodeGen] Async unwind - add a pass to fix CFI information
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 06:55:41 PST 2021
jrtc27 added inline comments.
================
Comment at: llvm/lib/CodeGen/CFIFixup.cpp:190
+ ++InsertPt;
+ InsertMBB = &*CurrBB;
+ Change = true;
----------------
Ok but doing that here doesn't make sense, now you restore back to the prologue but other things may have happened? I was imagining updating the last MBB with a frame whenever Info.HasFrameOnExit. Then you also don't need InsertPt, just insert at the end of the that MBB. That'll keep the remember/restore tight around just the MBBs that clobber the CFI state.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114545/new/
https://reviews.llvm.org/D114545
More information about the llvm-commits
mailing list