summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp2
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
OpenPOWER on IntegriCloud