mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Use the correct MachineRegisterInfo object.
llvm-svn: 45499
This commit is contained in:
parent
92d8ff0471
commit
c677923991
@ -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