[llvm] [WIP][AMDGPU][Attributor] Make `AAAMDFlatWorkGroupSize` honor existing attribute (PR #114357)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 22:10:27 PDT 2024


================
@@ -728,12 +735,43 @@ struct AAAMDSizeRangeAttribute
     };
 
     bool AllCallSitesKnown = true;
-    if (!A.checkForAllCallSites(CheckCallSite, *this, true, AllCallSitesKnown))
+    if (!A.checkForAllCallSites(CheckCallSite, *this,
+                                /*RequireAllCallSites=*/true,
+                                AllCallSitesKnown))
       return indicatePessimisticFixpoint();
----------------
shiltian wrote:

This will make the AA invalid as well because if `updateImpl` is called, the known range is full set for sure, and `known -> assumed` will make the assumed range a full set, thus in an invalid state.

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


More information about the llvm-commits mailing list