mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Simplify slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
765d8e5cbd
commit
a17ad59e13
@ -183,6 +183,8 @@ FunctionPass *llvm::createMachineLICMPass() { return new MachineLICM(); }
|
|||||||
bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
||||||
if (!PerformLICM) return false; // For debugging.
|
if (!PerformLICM) return false; // For debugging.
|
||||||
|
|
||||||
|
DOUT << "******** Machine LICM ********\n";
|
||||||
|
|
||||||
Changed = false;
|
Changed = false;
|
||||||
CurMF = &MF;
|
CurMF = &MF;
|
||||||
TII = CurMF->getTarget().getInstrInfo();
|
TII = CurMF->getTarget().getInstrInfo();
|
||||||
@ -195,13 +197,12 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
|
|
||||||
for (MachineLoopInfo::iterator
|
for (MachineLoopInfo::iterator
|
||||||
I = LI->begin(), E = LI->end(); I != E; ++I) {
|
I = LI->begin(), E = LI->end(); I != E; ++I) {
|
||||||
MachineLoop *L = *I;
|
CurLoop = *I;
|
||||||
CurLoop = L;
|
|
||||||
|
|
||||||
// Visit all of the instructions of the loop. We want to visit the subloops
|
// Visit all of the instructions of the loop. We want to visit the subloops
|
||||||
// first, though, so that we can hoist their invariants first into their
|
// first, though, so that we can hoist their invariants first into their
|
||||||
// containing loop before we process that loop.
|
// containing loop before we process that loop.
|
||||||
VisitAllLoops(L);
|
VisitAllLoops(CurLoop);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Changed;
|
return Changed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user