[PATCH] D114545: [CodeGen] Async unwind - add a pass to fix CFI information
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 26 19:27:50 PDT 2022
MaskRay added inline comments.
================
Comment at: llvm/lib/CodeGen/CFIFixup.cpp:181
+#endif
+ if (!Info.StrongNoFrameOnEntry && Info.HasFrameOnEntry && !HasFrame) {
+ // Reset to the "after prologue" state.
----------------
MaskRay wrote:
> Super nit: `if (!HasFrame && Info.HasFrameOnEntry && !Info.StrongNoFrameOnEntry) {`
>
> HasFrame represents the previous state and Info.HasFrameOnEntry represents the current state. The order implies a state transition.
>
> ---
>
> The term "Reset" seems to imply transiting to the initial state.
>
> "Transit to" may be better. To describe `!HasFrame` as well, the comment is better changed to something like `Transit from ... state to ... state`.
Actually, I think `Info.StrongNoFrameOnEntry` can just be removed.
Info.HasFrameOnEntry implies that this is a block in "after prologue" state and `Info.StrongNoFrameOnEntry` must be false.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114545/new/
https://reviews.llvm.org/D114545
More information about the llvm-commits
mailing list