[PATCH] D127810: [InstCombine] Improve check for catchswitch BBs (NFC)
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 01:06:31 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb2f4112f2567: [InstCombine] Improve check for catchswitch BBs (NFC) (authored by aheejin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127810/new/
https://reviews.llvm.org/D127810
Files:
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
Index: llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
===================================================================
--- llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
+++ llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
@@ -1125,7 +1125,7 @@
// extract the value within that BB because we cannot insert any non-PHI
// instructions in the BB.
for (auto *Pred : PN->blocks())
- if (isa<CatchSwitchInst>(Pred->getFirstNonPHI()))
+ if (Pred->getFirstInsertionPt() == Pred->end())
return nullptr;
for (User *U : PN->users()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127810.437069.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220615/7a516281/attachment.bin>
More information about the llvm-commits
mailing list