[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 12 23:05:00 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
BottomUpClosure.cpp updated: 1.69 -> 1.70
---
Log message:
Minor code cleanup
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
diff -u llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.69 llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.70
--- llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp:1.69 Wed Nov 12 17:11:14 2003
+++ llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp Wed Nov 12 23:04:19 2003
@@ -94,7 +94,7 @@
std::vector<Function*> &Stack,
unsigned &NextID,
hash_map<Function*, unsigned> &ValMap) {
- assert(ValMap.find(F) == ValMap.end() && "Shouldn't revisit functions!");
+ assert(!ValMap.count(F) && "Shouldn't revisit functions!");
unsigned Min = NextID++, MyID = Min;
ValMap[F] = Min;
Stack.push_back(F);
@@ -260,7 +260,7 @@
if (Callee->isExternal()) {
// Ignore this case, simple varargs functions we cannot stub out!
- } else if (ReturnNodes.find(Callee) != ReturnNodes.end()) {
+ } else if (ReturnNodes.count(Callee)) {
// Self recursion... simply link up the formal arguments with the
// actual arguments...
DEBUG(std::cerr << " Self Inlining: " << Callee->getName() << "\n");
More information about the llvm-commits
mailing list