[llvm] [AMDGPU][SIInsertWaitcnts] Enable RegistersAreIntervals for AMDGPU (PR #174888)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 07:48:18 PST 2026
================
@@ -781,17 +776,17 @@ class WaitcntBrackets {
// Return true if there might be pending writes to the vgpr-interval by VMEM
// instructions with types different from V.
bool hasOtherPendingVmemTypes(MCPhysReg Reg, VmemType V) const {
- for (MCRegUnit RU : regunits(Reg)) {
- auto It = VMem.find(toVMEMID(RU));
+ for (unsigned RU : regunits_interval(Reg)) {
----------------
arsenm wrote:
I don't understand why this API change is necessary from regunits -> regunits_interval and MCRegUnit->unsigned. I thought the flag was just changing the implementation details, so why does any code here need to change?
https://github.com/llvm/llvm-project/pull/174888
More information about the llvm-commits
mailing list