summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-12-11 22:22:22 +0000
committerBill Wendling <isanbard@gmail.com>2007-12-11 22:22:22 +0000
commit642e15a7cbddb1c3192781b2bafd810de2124d42 (patch)
treebe6a2702079e7bb8eefa79927c80e9036b1d2309 /llvm/lib/CodeGen/MachineLICM.cpp
parent7f01ebefc6faf719a74079105c7af8c9dd4b898e (diff)
downloadbcm5719-llvm-642e15a7cbddb1c3192781b2bafd810de2124d42.tar.gz
bcm5719-llvm-642e15a7cbddb1c3192781b2bafd810de2124d42.zip
Simplify slightly.
llvm-svn: 44881
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index 8277a430678..8f507e837e6 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/lib/CodeGen/MachineLICM.cpp
@@ -183,6 +183,8 @@ FunctionPass *llvm::createMachineLICMPass() { return new MachineLICM(); }
bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
if (!PerformLICM) return false; // For debugging.
+ DOUT << "******** Machine LICM ********\n";
+
Changed = false;
CurMF = &MF;
TII = CurMF->getTarget().getInstrInfo();
@@ -195,13 +197,12 @@ bool MachineLICM::runOnMachineFunction(MachineFunction &MF) {
for (MachineLoopInfo::iterator
I = LI->begin(), E = LI->end(); I != E; ++I) {
- MachineLoop *L = *I;
- CurLoop = L;
+ CurLoop = *I;
// 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
// containing loop before we process that loop.
- VisitAllLoops(L);
+ VisitAllLoops(CurLoop);
}
return Changed;
OpenPOWER on IntegriCloud