[llvm] [Attributor] Prevent infinite loop in AAGlobalValueInfoFloating (PR #94941)
Vidush Singhal via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 12:16:08 PDT 2024
================
@@ -1749,6 +1749,10 @@ bool Attributor::checkForAllCallees(
return Pred(Callees.getArrayRef());
}
+bool noRevisitUser(const User *user) {
----------------
vidsinghal wrote:
`canMarkAsVisited` seems fine
I would even recommend, `checkIfPhiOrNotInst`
https://github.com/llvm/llvm-project/pull/94941
More information about the llvm-commits
mailing list