summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-30 23:24:40 +0000
committerEric Christopher <echristo@gmail.com>2015-01-30 23:24:40 +0000
commit7792e32b649d6399ffc9d4ebcc700a376a4936e8 (patch)
treee1c8f08a3ba0048e3d80026e78ec98680fd99918 /llvm/lib/Target/R600/AMDGPUSubtarget.cpp
parentc2f99b421bbd7e53deecb4945a0ecc0f366295e7 (diff)
downloadbcm5719-llvm-7792e32b649d6399ffc9d4ebcc700a376a4936e8.tar.gz
bcm5719-llvm-7792e32b649d6399ffc9d4ebcc700a376a4936e8.zip
Reuse a bunch of cached subtargets and remove getSubtarget calls
without a Function argument. llvm-svn: 227638
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUSubtarget.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUSubtarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUSubtarget.cpp b/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
index e08a7dd2689..f7078863cb6 100644
--- a/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
+++ b/llvm/lib/Target/R600/AMDGPUSubtarget.cpp
@@ -81,10 +81,10 @@ AMDGPUSubtarget::AMDGPUSubtarget(StringRef TT, StringRef GPU, StringRef FS,
if (getGeneration() <= AMDGPUSubtarget::NORTHERN_ISLANDS) {
InstrInfo.reset(new R600InstrInfo(*this));
- TLInfo.reset(new R600TargetLowering(TM));
+ TLInfo.reset(new R600TargetLowering(TM, *this));
} else {
InstrInfo.reset(new SIInstrInfo(*this));
- TLInfo.reset(new SITargetLowering(TM));
+ TLInfo.reset(new SITargetLowering(TM, *this));
}
}
OpenPOWER on IntegriCloud