[llvm] [AMDGPU] Reset WavesPerEU in AAAMDWavesPerEU::initialize (PR #114162)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 18:14:39 PDT 2024


================
@@ -843,7 +843,9 @@ struct AAAMDWavesPerEU : public AAAMDSizeRangeAttribute {
                AssumedGroupSize->getAssumed().getUpper().getZExtValue() - 1});
 
       ConstantRange Range(APInt(32, Min), APInt(32, Max + 1));
-      intersectKnown(Range);
+      
+      // Reset in case this is subsequent run and CallGraph is updated
----------------
arsenm wrote:

Comment doesn't make sense, don't speak in terms of subsequent runs 

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


More information about the llvm-commits mailing list