forked from OSchip/llvm-project
Grab the TargetRegisterInfo off of the subtarget from the
MachineFunction rather than a lookup on the TargetMachine to avoid unnecessary lookups. llvm-svn: 219291
This commit is contained in:
parent
dbcc2a9fdb
commit
d2670a34c9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue