[llvm] [UnifyFunctionExitNodes] skip mergereturn on terminating deoptimize (PR #204651)
Arda Serdar Pektezol via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 18 11:46:05 PDT 2026
================
@@ -45,9 +45,12 @@ bool unifyUnreachableBlocks(Function &F) {
bool unifyReturnBlocks(Function &F) {
std::vector<BasicBlock *> ReturningBlocks;
- for (BasicBlock &I : F)
+ for (BasicBlock &I : F) {
+ if (I.getTerminatingDeoptimizeCall())
----------------
pektezol wrote:
> also, assuming this shouldn't be handled, why returning and not just skipping?
It would mean the pass would result in more than one return right?
https://github.com/llvm/llvm-project/pull/204651
More information about the llvm-commits
mailing list