mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 07:31:47 +00:00
Use the correct MachineRegisterInfo object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3100afaf3f
commit
dde059a9de
@ -178,7 +178,7 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
||||
CurMF = &MF;
|
||||
TM = &CurMF->getTarget();
|
||||
TII = TM->getInstrInfo();
|
||||
RegInfo = new MachineRegisterInfo(*TM->getRegisterInfo());
|
||||
RegInfo = &CurMF->getRegInfo();
|
||||
|
||||
// Get our Loop information...
|
||||
LI = &getAnalysis<MachineLoopInfo>();
|
||||
@ -194,7 +194,6 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
||||
VisitAllLoops(CurLoop);
|
||||
}
|
||||
|
||||
delete RegInfo;
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user