================
@@ -2816,12 +2870,32 @@ void
SIInsertWaitcnts::analyzeSingleBBLoopDSLoads(MachineLoop *ML) {
}
}
- Info.TotalDSLoads = LoadPosition;
+ // Filter out flushed loads and renumber remaining ones
+ // Also compute the floor wait count - the wait established by same-iteration
+ // use
+ if (LastFlushedPosition > 0) {
+ DenseMap<unsigned, unsigned> NewMap;
+ for (auto &[RegUnit, Position] : Info.VGPRToLoadPosition) {
----------------
arsenm wrote:
```suggestion
for (auto [RegUnit, Position] : Info.VGPRToLoadPosition) {
```
https://github.com/llvm/llvm-project/pull/171952
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits