[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 13 22:57:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.50 -> 1.51
---
Log message:
Don't put integer pointers (longs) into the scalar map.
This speeds stuff up by 10% on some tests, woot!
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.50 llvm/lib/Analysis/DataStructure/Local.cpp:1.51
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.50 Tue Feb 11 17:11:44 2003
+++ llvm/lib/Analysis/DataStructure/Local.cpp Thu Feb 13 22:55:58 2003
@@ -143,6 +143,16 @@
#ifndef NDEBUG
Timer::addPeakMemoryMeasurement();
#endif
+
+ // Remove all integral constants from the scalarmap!
+ for (hash_map<Value*, DSNodeHandle>::iterator I = ScalarMap.begin();
+ I != ScalarMap.end();)
+ if (isa<ConstantIntegral>(I->first)) {
+ hash_map<Value*, DSNodeHandle>::iterator J = I++;
+ ScalarMap.erase(J);
+ } else
+ ++I;
+
markIncompleteNodes(DSGraph::MarkFormalArgs);
// Remove any nodes made dead due to merging...
More information about the llvm-commits
mailing list