X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTarget%2FAMDGPU%2FSIPrepareScratchRegs.cpp;h=a6c22775e098e2d1bb4c432a57d65374108550d2;hp=5b17369113c843cac77e9b4da2030c0b8f53e423;hb=d2643e2ff955ed234944fe3c6b4ffc1250085843;hpb=7233876104013680a0f3c7a75228ecb0cc3c27dc diff --git a/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp b/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp index 5b17369113c..a6c22775e09 100644 --- a/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp +++ b/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