[llvm] [Attributor] Prevent infinite loop in AAGlobalValueInfoFloating (PR #94941)

Ethan Luis McDonough via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 11:15:05 PDT 2024


================
@@ -1749,6 +1749,10 @@ bool Attributor::checkForAllCallees(
   return Pred(Callees.getArrayRef());
 }
 
+bool noRevisitUser(const User *user) {
----------------
EthanLuisMcDonough wrote:

Maybe `markAsVisited` would work better?

Regarding your initial point, I do plan on squashing and merging this commit once it is approved.

https://github.com/llvm/llvm-project/pull/94941


More information about the llvm-commits mailing list