[PATCH] D127699: [InstCombine] Don't slice up PHIs when pred BB has catchswitch
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 00:37:14 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp:1128
+ for (auto *Pred : PN->blocks())
+ if (isa<CatchSwitchInst>(Pred->getFirstNonPHI()))
+ return nullptr;
----------------
The correct way to check this is whether `getFirstInsertionPt()` is `end()`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127699/new/
https://reviews.llvm.org/D127699
More information about the llvm-commits
mailing list