mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Grab the TargetRegisterInfo off of the subtarget from the
MachineFunction rather than a lookup on the TargetMachine to avoid unnecessary lookups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -454,7 +454,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
|||||||
// copied into vregs, emit the copies into the top of the block before
|
// copied into vregs, emit the copies into the top of the block before
|
||||||
// emitting the code for the block.
|
// emitting the code for the block.
|
||||||
MachineBasicBlock *EntryMBB = MF->begin();
|
MachineBasicBlock *EntryMBB = MF->begin();
|
||||||
const TargetRegisterInfo &TRI = *TM.getSubtargetImpl()->getRegisterInfo();
|
const TargetRegisterInfo &TRI = *MF->getSubtarget().getRegisterInfo();
|
||||||
RegInfo->EmitLiveInCopies(EntryMBB, TRI, *TII);
|
RegInfo->EmitLiveInCopies(EntryMBB, TRI, *TII);
|
||||||
|
|
||||||
DenseMap<unsigned, unsigned> LiveInMap;
|
DenseMap<unsigned, unsigned> LiveInMap;
|
||||||
|
Reference in New Issue
Block a user