[llvm-branch-commits] [llvm] [AMDGPU][Attributor] Skip update if an AA is at its initial state (PR #114726)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 4 11:15:41 PST 2024


================
@@ -740,6 +740,16 @@ struct AAAMDSizeRangeAttribute
       if (!CallerInfo || !CallerInfo->isValidState())
         return false;
 
+      /// When the caller AA is in its initial state, the state remains valid
+      /// but awaits propagation. We skip processing in this case. Note that we
+      /// must return true since the state is still considered valid.
+      if (CallerInfo->isAtInitialState()) {
+        LLVM_DEBUG(dbgs() << '[' << getName() << "] Caller "
+                          << Caller->getName()
----------------
shiltian wrote:

This is copied from existing code. I'll do a follow up patch to change them all.

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


More information about the llvm-branch-commits mailing list