[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 8 17:09:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.88 -> 1.89
---
Log message:
Add a special case for main because we know it's incoming arguments don't alias
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.88 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.89
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.88 Wed Feb 5 18:15:08 2003
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Sat Feb 8 17:08:02 2003
@@ -752,7 +752,7 @@
//
void DSGraph::markIncompleteNodes(unsigned Flags) {
// Mark any incoming arguments as incomplete...
- if ((Flags & DSGraph::MarkFormalArgs) && Func)
+ if ((Flags & DSGraph::MarkFormalArgs) && Func && Func->getName() != "main")
for (Function::aiterator I = Func->abegin(), E = Func->aend(); I != E; ++I)
if (isPointerType(I->getType()) && ScalarMap.find(I) != ScalarMap.end())
markIncompleteNode(ScalarMap[I].getNode());
More information about the llvm-commits
mailing list