[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 2 18:58:01 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructureAA.cpp updated: 1.8 -> 1.9
---
Log message:
Disable incorrect mustalias code
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructureAA.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.8 llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.9
--- llvm/lib/Analysis/DataStructure/DataStructureAA.cpp:1.8 Tue Jul 1 23:39:13 2003
+++ llvm/lib/Analysis/DataStructure/DataStructureAA.cpp Wed Jul 2 18:56:51 2003
@@ -107,6 +107,7 @@
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 @@
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 @@
/// 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 @@
RetVals.push_back(N->getGlobals()[0]);
}
}
-
+#endif
return getAnalysis<AliasAnalysis>().getMustAliases(P, RetVals);
}
More information about the llvm-commits
mailing list