[PATCH] D139883: [llvm][CallBrPrepare] add llvm.callbr.landingpad intrinsic
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 16:23:47 PST 2023
nickdesaulniers added inline comments.
================
Comment at: llvm/test/Transforms/SimplifyCFG/callbr-destinations.ll:62
+
+; Validate that callbr landingpad intrinsics do not get merged (via the
+; IntrNoMerge attribute).
----------------
jyknight wrote:
> In the expected pass pipeline, do we simplifycfg after callbrprepare? That seems a bit surprising if so?
>
> (Not that it's wrong to mark it IntrNoMerge, of course.)
We do not; this is an artifact from when the frontend would produce the intrinsic at which point we would need to guard against SimplifyCFG merging two basic blocks that just contained this intrinsic call.
I can remove it if you feel that it's unnecessary to retain this guard. WDYT?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139883/new/
https://reviews.llvm.org/D139883
More information about the llvm-commits
mailing list