AMDGPU: Add MachineInstr overloads for instruction format tests
[oota-llvm.git] / lib / Target / AMDGPU / SIPrepareScratchRegs.cpp
index 5b17369113c843cac77e9b4da2030c0b8f53e423..a6c22775e098e2d1bb4c432a57d65374108550d2 100644 (file)
@@ -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