We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed220f commit ce7a983Copy full SHA for ce7a983
llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
@@ -400,8 +400,9 @@ class AMDGPUInsertDelayAlu : public MachineFunctionPass {
400
401
if (SII->isVALU(MI.getOpcode())) {
402
for (const auto &Op : MI.defs()) {
403
- for (MCRegUnit Unit : TRI->regunits(Op.getReg())) {
404
- if (AMDGPU::isSGPR(Op.getReg(), TRI)) {
+ Register Reg = Op.getReg();
+ for (MCRegUnit Unit : TRI->regunits(Reg)) {
405
+ if (AMDGPU::isSGPR(Reg, TRI)) {
406
lastSGPRfromVALU = Unit;
407
break;
408
}
0 commit comments