summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIInstrInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-01 18:09:56 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-01 18:09:56 +0000
commit7149aabf8bf7168cadc385fbb35366f6228150bf (patch)
tree996647a752841c309036620b927fc04b4f89406b /llvm/lib/Target/R600/SIInstrInfo.cpp
parente0ca6e1375cd4c166a1428dff3df4aedf94f404f (diff)
downloadbcm5719-llvm-7149aabf8bf7168cadc385fbb35366f6228150bf.tar.gz
bcm5719-llvm-7149aabf8bf7168cadc385fbb35366f6228150bf.zip
Make some non-constant static variables non-static or fully const.
Otherwise we have to emit thread-safe initialization for them. NFC. llvm-svn: 230894
Diffstat (limited to 'llvm/lib/Target/R600/SIInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/R600/SIInstrInfo.cpp b/llvm/lib/Target/R600/SIInstrInfo.cpp
index 41441cfc386..a4662643224 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.cpp
+++ b/llvm/lib/Target/R600/SIInstrInfo.cpp
@@ -583,10 +583,7 @@ unsigned SIInstrInfo::calculateLDSSpillAddress(MachineBasicBlock &MBB,
unsigned TIDIGZReg = TRI->getPreloadedValue(*MF, SIRegisterInfo::TIDIG_Z);
unsigned InputPtrReg =
TRI->getPreloadedValue(*MF, SIRegisterInfo::INPUT_PTR);
- static const unsigned TIDIGRegs[3] = {
- TIDIGXReg, TIDIGYReg, TIDIGZReg
- };
- for (unsigned Reg : TIDIGRegs) {
+ for (unsigned Reg : {TIDIGXReg, TIDIGYReg, TIDIGZReg}) {
if (!Entry.isLiveIn(Reg))
Entry.addLiveIn(Reg);
}
OpenPOWER on IntegriCloud