summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-02 23:56:51 +0000
committerChris Lattner <sabre@nondot.org>2003-07-02 23:56:51 +0000
commit9a75369b741d7d139bef088b313055e7bf5f72e1 (patch)
treebd4c1c94d2c6bdaa4d2bf40f0deb2ffb0f54103f /llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
parent959177fb96d863fdb07b676f8cf9d40f6c7e8f4d (diff)
downloadbcm5719-llvm-9a75369b741d7d139bef088b313055e7bf5f72e1.tar.gz
bcm5719-llvm-9a75369b741d7d139bef088b313055e7bf5f72e1.zip
Disable incorrect mustalias code
llvm-svn: 7087
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructureAA.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructureAA.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp b/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
index 4940e9d0fc5..e7e963a6364 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
+++ b/llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
@@ -107,6 +107,7 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,
if (N1 != N2)
return NoAlias; // Completely different nodes.
+#if 0 // This does not correctly handle arrays!
// Both point to the same node and same offset, and there is only one
// physical memory object represented in the node, return must alias.
//
@@ -115,6 +116,7 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,
if (O1 == O2 && isSinglePhysicalObject(N1))
return MustAlias; // Exactly the same object & offset
+#endif
// See if they point to different offsets... if so, we may be able to
// determine that they do not alias...
@@ -146,6 +148,7 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,
/// specified vector.
///
void DSAA::getMustAliases(Value *P, std::vector<Value*> &RetVals) {
+#if 0 // This does not correctly handle arrays!
// Currently the only must alias information we can provide is to say that
// something is equal to a global value. If we already have a global value,
// don't get worked up about it.
@@ -163,6 +166,6 @@ void DSAA::getMustAliases(Value *P, std::vector<Value*> &RetVals) {
RetVals.push_back(N->getGlobals()[0]);
}
}
-
+#endif
return getAnalysis<AliasAnalysis>().getMustAliases(P, RetVals);
}
OpenPOWER on IntegriCloud