[PATCH] D145275: [CGP] Hoist allocas used in catchpad instructions, if they are not in the entry block.
Chang Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 21:42:46 PST 2023
clin1 added a comment.
You're right, this IR won't come out of clang --- it's an artifact of a function shrinkwrapping project that someone was working on. The IR seems generically "legal" but was causing a crash later in codegen. The patch avoids the crash.
I just realized that this patch won't address the github issue linked above (60914) because it only hoists catchpad operands. Maybe a more generic solution in WinEH codegen is needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145275/new/
https://reviews.llvm.org/D145275
More information about the llvm-commits
mailing list