1
0
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:
Bill Wendling 2008-01-02 21:10:54 +00:00
parent 92d8ff0471
commit c677923991

View File

@ -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;
}