[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp MemoryDepAnalysis.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 31 14:36:02 PDT 2003
Changes in directory llvm/lib/Analysis/IPA:
CallGraphSCCPass.cpp updated: 1.1 -> 1.2
MemoryDepAnalysis.cpp updated: 1.3 -> 1.4
---
Log message:
The tarjan iterator now returns a reference to the current SCC, not a possibly null pointer!
---
Diffs of the changes:
Index: llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff -u llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.1 llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.2
--- llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp:1.1 Sat Aug 30 20:54:57 2003
+++ llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp Sun Aug 31 14:35:16 2003
@@ -25,6 +25,6 @@
bool Changed = false;
for (TarjanSCC_iterator<CallGraph*> I = tarj_begin(&CG), E = tarj_end(&CG);
I != E; ++I)
- Changed = runOnSCC(**I);
+ Changed = runOnSCC(*I);
return Changed;
}
Index: llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
diff -u llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.3 llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.4
--- llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.3 Sun Aug 31 14:29:52 2003
+++ llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp Sun Aug 31 14:35:16 2003
@@ -432,7 +432,7 @@
SCC<Function*>* nextSCC;
for (TarjanSCC_iterator<Function*> I = tarj_begin(&F), E = tarj_end(&F);
I != E; ++I)
- ProcessSCC(**I, ModRefAfter);
+ ProcessSCC(*I, ModRefAfter);
return true;
}
More information about the llvm-commits
mailing list