[PATCH] D105672: [SimpleLoopUnswitch] Don't non-trivially unswitch loops with catchswitch exits
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 8 16:45:20 PDT 2021
aheejin accepted this revision.
aheejin added a comment.
This revision is now accepted and ready to land.
Thank you!
================
Comment at: llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:2784
+ auto *I = ExitBB->getFirstNonPHI();
+ if (isa<CleanupPadInst>(I) || isa<CatchSwitchInst>(I)) {
+ LLVM_DEBUG(dbgs() << "Cannot unswitch because of cleanuppad/catchswitch "
----------------
Oh, I didn't find there's already a similar condition for `cleanuppad`...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105672/new/
https://reviews.llvm.org/D105672
More information about the llvm-commits
mailing list