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 | fdc902e6f281443611f1ab320ed340f897793b46 (patch) | |
| tree | 8709bb733ee41b121f24ead027f0b5b660fde60b /llvm/lib/Analysis/DataStructure | |
| parent | 9a734b6c2416c0e5f6a68f19e3daa71802d5d218 (diff) | |
| download | bcm5719-llvm-fdc902e6f281443611f1ab320ed340f897793b46.tar.gz bcm5719-llvm-fdc902e6f281443611f1ab320ed340f897793b46.zip | |
Don't bother counting alias results, allow the AliasAnalysisCounter to do that.
llvm-svn: 5505
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructureAA.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp b/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp index 786ed168f0c..1778574f46e 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp +++ b/llvm/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); } |

