mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-13 21:56:06 +00:00
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…
x
Reference in New Issue
Block a user