diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-07 20:39:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-07 20:39:48 +0000 |
commit | 1dbd1b820f984a30e82ddbed70de45394bc6df3c (patch) | |
tree | 1f21dc6eac74c9c7c85ef25e2a3d8cf7d8872e42 /lib/Analysis/DataStructure/DataStructureAA.cpp | |
parent | a89feb55e04fd4f25d7c09fb0c119fc9250b5b5a (diff) |
Don't bother counting alias results, allow the AliasAnalysisCounter to do that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructureAA.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructureAA.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/Analysis/DataStructure/DataStructureAA.cpp b/lib/Analysis/DataStructure/DataStructureAA.cpp index 786ed168f0..1778574f46 100644 --- a/lib/Analysis/DataStructure/DataStructureAA.cpp +++ b/lib/Analysis/DataStructure/DataStructureAA.cpp @@ -9,12 +9,6 @@ #include "llvm/Analysis/DSGraph.h" #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Module.h" -#include "Support/Statistic.h" - -namespace { - Statistic<> NumNoAlias ("ds-aa", "Number of 'no alias' replies"); - Statistic<> NumMayAlias ("ds-aa", "Number of 'may alias' replies"); -}; namespace { class DSAA : public Pass, public AliasAnalysis { @@ -104,18 +98,14 @@ AliasAnalysis::Result DSAA::alias(const Value *V1, const Value *V2) { if (I->second.getNode() != J->second.getNode()) { // Return noalias if one of the nodes is complete... if ((~I->second.getNode()->NodeType | ~J->second.getNode()->NodeType) - & DSNode::Incomplete) { - ++NumNoAlias; + & DSNode::Incomplete) return NoAlias; - } // both are incomplete, they may alias... } else { // Both point to the same node, see if they point to different // offsets... FIXME: This needs to know the size of the alias query - if (I->second.getOffset() != J->second.getOffset()) { - ++NumNoAlias; + if (I->second.getOffset() != J->second.getOffset()) return NoAlias; - } } } } @@ -123,6 +113,5 @@ AliasAnalysis::Result DSAA::alias(const Value *V1, const Value *V2) { // FIXME: we could improve on this by checking the globals graph for aliased // global queries... - ++NumMayAlias; return getAnalysis<AliasAnalysis>().alias(V1, V2); } |