[llvm] [AMDGPU] Generate waterfall for calls with SGPR(inreg) argument (PR #146997)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 01:16:29 PDT 2025
================
@@ -6827,7 +6824,7 @@ emitLoadScalarOpsFromVGPRLoop(const SIInstrInfo &TII,
MachineBasicBlock::iterator I = LoopBB.begin();
Register CondReg;
-
+ int Idx = 0;
for (MachineOperand *ScalarOp : ScalarOps) {
----------------
jmmartinez wrote:
Nitpick, but there is an `enumerate(Range)` helper. You can use it as:
```cpp
for (auto [Idx, ScalarOp] : enumerate(ScalarOps))
```
https://github.com/llvm/llvm-project/pull/146997
More information about the llvm-commits
mailing list