[all-commits] [llvm/llvm-project] c3a68c: [SROA] Bail out on PHIs in catchswitch BBs
Heejin Ahn via All-commits
all-commits at lists.llvm.org
Fri Jan 14 14:55:39 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3a68c5d63c6b9b707ff730a8520f3f5fd1e66f4
https://github.com/llvm/llvm-project/commit/c3a68c5d63c6b9b707ff730a8520f3f5fd1e66f4
Author: Heejin Ahn <aheejin at gmail.com>
Date: 2022-01-14 (Fri, 14 Jan 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/SROA.cpp
A llvm/test/Transforms/SROA/phi-catchswitch.ll
Log Message:
-----------
[SROA] Bail out on PHIs in catchswitch BBs
In the process of rewriting `alloca`s and `phi`s that use them, the SROA
pass can try to insert a non-PHI instruction by calling
`getFirstInsertionPt()`, which is not possible in a catchswitch BB. This
CL makes we bail out on these cases.
Reviewed By: dschuff
Differential Revision: https://reviews.llvm.org/D117168
More information about the All-commits
mailing list