R600/SI: Fix simple-loop.ll test
[opencl/llvm.git] / lib / Target / R600 / SIRegisterInfo.cpp
index 321d25fce73078dc40a24cee8d3c9ccb6ca1248e..166df66a27a14d6c1d19c1f3dab53fed762fa829 100644 (file)
@@ -142,7 +142,7 @@ void SIRegisterInfo::buildScratchLoadStore(MachineBasicBlock::iterator MI,
             .addReg(SubReg, getDefRegState(IsLoad))
             .addReg(ScratchRsrcReg, getKillRegState(IsKill))
             .addImm(Offset)
-            .addReg(SOffset, getKillRegState(IsKill))
+            .addReg(SOffset)
             .addImm(0) // glc
             .addImm(0) // slc
             .addImm(0) // tfe