[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 25 21:44:33 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.160 -> 1.161
---
Log message:
The node doesn't have to be _no_ node flags, it just has to be complete and
not have any globals.
---
Diffs of the changes: (+3 -2)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.160 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.161
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.160 Wed Feb 25 17:36:08 2004
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Wed Feb 25 21:43:43 2004
@@ -1393,9 +1393,10 @@
// If the Callee is a useless edge, this must be an unreachable call site,
// eliminate it.
if (CS.isIndirectCall() && CS.getCalleeNode()->getNumReferrers() == 1 &&
- CS.getCalleeNode()->getNodeFlags() == 0) { // No useful info?
+ CS.getCalleeNode()->isComplete() &&
+ CS.getCalleeNode()->getGlobals.empty()) { // No useful info?
#ifndef NDEBUG
- std::cerr << "WARNING: Useless call site found??\n";
+ std::cerr << "WARNING: Useless call site found.\n";
#endif
CS.swap(Calls.back());
Calls.pop_back();
More information about the llvm-commits
mailing list