diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp b/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp index 5b17369113c..a6c22775e09 100644 --- a/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp +++ b/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp @@ -131,7 +131,7 @@ bool SIPrepareScratchRegs::runOnMachineFunction(MachineFunction &MF) { MachineInstr &MI = *I; RS.forward(I); DebugLoc DL = MI.getDebugLoc(); - if (!TII->isVGPRSpill(MI.getOpcode())) + if (!TII->isVGPRSpill(MI)) continue; // Scratch resource |