[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 1 00:55:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.82 -> 1.83
---
Log message:
Fix a bug where we would delete neccesary calls in bu pass
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.82 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.83
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.82 Sat Feb 1 00:51:17 2003
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Sat Feb 1 00:54:31 2003
@@ -1058,7 +1058,8 @@
std::vector<bool> AuxFCallsAlive(AuxFunctionCalls.size());
for (unsigned i = 0, e = AuxFunctionCalls.size(); i != e; ++i)
- if (CallSiteUsesAliveArgs(AuxFunctionCalls[i], Alive, Visited)) {
+ if (!(Flags & DSGraph::RemoveUnreachableGlobals) ||
+ CallSiteUsesAliveArgs(AuxFunctionCalls[i], Alive, Visited)) {
AuxFunctionCalls[i].markReachableNodes(Alive);
AuxFCallsAlive[i] = true;
}
More information about the llvm-commits
mailing list