[PATCH] D129997: [Local] Allow creating callbr with duplicate successors
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 14:39:30 PDT 2022
nickdesaulniers added a comment.
I think I have a fix:
diff --git a/llvm/lib/CodeGen/TailDuplicator.cpp b/llvm/lib/CodeGen/TailDuplicator.cpp
index 18507b8fa84f..dff17df42e74 100644
--- a/llvm/lib/CodeGen/TailDuplicator.cpp
+++ b/llvm/lib/CodeGen/TailDuplicator.cpp
@@ -799,6 +799,8 @@ bool TailDuplicator::canTailDuplicate(MachineBasicBlock *TailBB,
return false;
if (!PredCond.empty())
return false;
+ if (TailBB->isInlineAsmBrIndirectTarget())
+ return false;
return true;
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129997/new/
https://reviews.llvm.org/D129997
More information about the llvm-commits
mailing list