[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 8 17:04:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Steensgaard.cpp updated: 1.20 -> 1.21
---
Log message:
Remove explicit result counters
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Steensgaard.cpp
diff -u llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.20 llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.21
--- llvm/lib/Analysis/DataStructure/Steensgaard.cpp:1.20 Wed Feb 5 15:59:56 2003
+++ llvm/lib/Analysis/DataStructure/Steensgaard.cpp Sat Feb 8 17:03:17 2003
@@ -11,12 +11,6 @@
#include "llvm/Analysis/DSGraph.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Module.h"
-#include "Support/Statistic.h"
-
-namespace {
- Statistic<> NumNoAlias ("steens", "Number of 'no alias' replies");
- Statistic<> NumMayAlias ("steens", "Number of 'may alias' replies");
-};
namespace {
class Steens : public Pass, public AliasAnalysis {
@@ -75,7 +69,7 @@
// Register the pass...
RegisterOpt<Steens> X("steens-aa",
- "Steensgaard's FlowInsensitive/ConIns alias analysis");
+ "Steensgaard's alias analysis (DSGraph based)");
// Register as an implementation of AliasAnalysis
RegisterAnalysisGroup<AliasAnalysis, Steens> Y;
@@ -198,7 +192,7 @@
// FIXME: We should be able to disable the globals graph for steens!
ResultGraph->removeDeadNodes(DSGraph::KeepUnreachableGlobals);
- DEBUG(print(std::cerr, &M));
+ //print(std::cerr, &M);
return false;
}
@@ -216,10 +210,9 @@
DSNodeHandle &V2H = J->second;
// If the two pointers point to different data structure graph nodes, they
// cannot alias!
- if (V1H.getNode() != V2H.getNode()) { // FIXME: Handle incompleteness!
- ++NumNoAlias;
+ if (V1H.getNode() != V2H.getNode()) // FIXME: Handle incompleteness!
return NoAlias;
- }
+
// FIXME: If the two pointers point to the same node, and the offsets are
// different, and the LinkIndex vector doesn't alias the section, then the
// two pointers do not alias. We need access size information for the two
@@ -227,9 +220,6 @@
//
}
}
-
- // Since Steensgaard cannot do any better, count it as a 'may alias'
- ++NumMayAlias;
// If we cannot determine alias properties based on our graph, fall back on
// some other AA implementation.
More information about the llvm-commits
mailing list