projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a20bcb9
)
R600: Drop use of cached TargetMachine in R600InstrInfo.cpp
author
Tom Stellard
<thomas.stellard@amd.com>
Fri, 13 Jun 2014 01:31:56 +0000
(
01:31
+0000)
committer
Tom Stellard
<thomas.stellard@amd.com>
Fri, 13 Jun 2014 01:31:56 +0000
(
01:31
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210868
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/R600/R600InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/R600/R600InstrInfo.cpp
b/lib/Target/R600/R600InstrInfo.cpp
index b0d9ae3e70e37ab3bcc3d13077368cc4a698c71e..fc3c2c55dab515a9ae0818ae17cb1e50b04270c1 100644
(file)
--- a/
lib/Target/R600/R600InstrInfo.cpp
+++ b/
lib/Target/R600/R600InstrInfo.cpp
@@
-1067,7
+1067,8
@@
unsigned int R600InstrInfo::getInstrLatency(const InstrItineraryData *ItinData,
void R600InstrInfo::reserveIndirectRegisters(BitVector &Reserved,
const MachineFunction &MF) const {
const AMDGPUFrameLowering *TFL =
- static_cast<const AMDGPUFrameLowering*>(TM.getFrameLowering());
+ static_cast<const AMDGPUFrameLowering*>(
+ MF.getTarget().getFrameLowering());
unsigned StackWidth = TFL->getStackWidth(MF);
int End = getIndirectIndexEnd(MF);