diff options
author | Eric Christopher <echristo@gmail.com> | 2014-10-08 09:50:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-10-08 09:50:52 +0000 |
commit | d2670a34c9767a614bce2a9c25c92d9e8be0e35e (patch) | |
tree | f147da75aa7910b831a8f6b47f3b0b3878babebe | |
parent | dbcc2a9fdb6196570c876e9a07fe3ecd769995ba (diff) | |
download | llvm-d2670a34c9767a614bce2a9c25c92d9e8be0e35e.zip llvm-d2670a34c9767a614bce2a9c25c92d9e8be0e35e.tar.gz llvm-d2670a34c9767a614bce2a9c25c92d9e8be0e35e.tar.bz2 |
Grab the TargetRegisterInfo off of the subtarget from the
MachineFunction rather than a lookup on the TargetMachine
to avoid unnecessary lookups.
llvm-svn: 219291
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 628ea62..006f3e01 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -454,7 +454,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { // copied into vregs, emit the copies into the top of the block before // emitting the code for the block. MachineBasicBlock *EntryMBB = MF->begin(); - const TargetRegisterInfo &TRI = *TM.getSubtargetImpl()->getRegisterInfo(); + const TargetRegisterInfo &TRI = *MF->getSubtarget().getRegisterInfo(); RegInfo->EmitLiveInCopies(EntryMBB, TRI, *TII); DenseMap<unsigned, unsigned> LiveInMap; |