diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-07 20:28:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-07 20:28:55 +0000 |
commit | b5632b5b456db647b42239cbd4d8b58c82290c4e (patch) | |
tree | 4662bb108ed60bf4d5a2692aa7bc82d19342620e /lib/Target/R600/SILowerControlFlow.cpp | |
parent | ce961477be78b3945e6ec4b7e22066f237a89846 (diff) | |
download | external_llvm-b5632b5b456db647b42239cbd4d8b58c82290c4e.zip external_llvm-b5632b5b456db647b42239cbd4d8b58c82290c4e.tar.gz external_llvm-b5632b5b456db647b42239cbd4d8b58c82290c4e.tar.bz2 |
Don't cache the instruction and register info from the TargetMachine, because
the internals of TargetMachine could change.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SILowerControlFlow.cpp')
-rw-r--r-- | lib/Target/R600/SILowerControlFlow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/R600/SILowerControlFlow.cpp b/lib/Target/R600/SILowerControlFlow.cpp index 2b60eb9..5b434fb 100644 --- a/lib/Target/R600/SILowerControlFlow.cpp +++ b/lib/Target/R600/SILowerControlFlow.cpp @@ -91,8 +91,7 @@ private: public: SILowerControlFlowPass(TargetMachine &tm) : - MachineFunctionPass(ID), TRI(tm.getRegisterInfo()), - TII(tm.getInstrInfo()) { } + MachineFunctionPass(ID), TRI(0), TII(0) { } virtual bool runOnMachineFunction(MachineFunction &MF); @@ -408,6 +407,8 @@ void SILowerControlFlowPass::IndirectDst(MachineInstr &MI) { } bool SILowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) { + TII = MF.getTarget().getInstrInfo(); + TRI = MF.getTarget().getRegisterInfo(); bool HaveKill = false; bool NeedWQM = false; |