[llvm] [IPO] Prevent removal of some convergent attr (PR #134863)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 08:42:16 PDT 2025
================
@@ -1864,6 +1864,19 @@ static bool InstrBreaksNonConvergent(Instruction &I,
!SCCNodes.contains(CB->getCalledFunction());
}
+static bool FunctionRequiresConvergence(const Function &F) {
+ for (auto &Use : F.uses()) {
+ CallBase *CB = dyn_cast<CallBase>(Use.getUser());
+ if (!CB)
+ return true;
----------------
arsenm wrote:
Need to check if the use is the callee operand
https://github.com/llvm/llvm-project/pull/134863
More information about the llvm-commits
mailing list