[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:24 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
+ *this &= Range;
----------------
arsenm wrote:
Can you assert this is a valid state after this point
https://github.com/llvm/llvm-project/pull/114162
More information about the llvm-commits
mailing list