summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-01-20 17:49:45 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-01-20 17:49:45 +0000
commit8255af45cbfbfdeb29eb8c817e20cdbed45371cf (patch)
treee2cc8c4761702aebcd9287308ab467bcc8ddcc15 /llvm/lib
parent805806952903902f01785e57a20a953a595cbeef (diff)
downloadbcm5719-llvm-8255af45cbfbfdeb29eb8c817e20cdbed45371cf.tar.gz
bcm5719-llvm-8255af45cbfbfdeb29eb8c817e20cdbed45371cf.zip
R600/SI: Add kill flag when copying scratch offset to a register
This allows us to re-use the same register for the scratch offset when accessing large private arrays. llvm-svn: 226585
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/SIRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIRegisterInfo.cpp b/llvm/lib/Target/R600/SIRegisterInfo.cpp
index f9feea470f1..59ff8a27d05 100644
--- a/llvm/lib/Target/R600/SIRegisterInfo.cpp
+++ b/llvm/lib/Target/R600/SIRegisterInfo.cpp
@@ -289,7 +289,7 @@ void SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
BuildMI(*MBB, MI, MI->getDebugLoc(),
TII->get(AMDGPU::V_MOV_B32_e32), TmpReg)
.addImm(Offset);
- FIOp.ChangeToRegister(TmpReg, false);
+ FIOp.ChangeToRegister(TmpReg, false, false, true);
}
}
}
OpenPOWER on IntegriCloud