aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit14ba7ae05473dc47aa9092fcfc897f8d357e325b (patch)
tree8a5dafa1679ffb115b27913e021ec9b630923ac2 /lib
parent40762fe7006a462e45f9265bf8f2600fd9485fdc (diff)
downloadexternal_llvm-14ba7ae05473dc47aa9092fcfc897f8d357e325b.zip
external_llvm-14ba7ae05473dc47aa9092fcfc897f8d357e325b.tar.gz
external_llvm-14ba7ae05473dc47aa9092fcfc897f8d357e325b.tar.bz2
Simplify slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineLICM.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 8277a43..8f507e8 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/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;