[llvm-commits] CVS: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 6 21:27:30 PST 2004
Changes in directory poolalloc/lib/PoolAllocate:
PoolAllocate.cpp updated: 1.84 -> 1.85
---
Log message:
Whoops, I managed to get the logic perfectly wrong here.
---
Diffs of the changes: (+2 -2)
Index: poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.84 poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.85
--- poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.84 Sat Nov 6 23:23:47 2004
+++ poolalloc/lib/PoolAllocate/PoolAllocate.cpp Sat Nov 6 23:27:19 2004
@@ -395,8 +395,8 @@
}
// If we don't need to create any global pools, exit now.
- if (GlobalHeapNodes.empty() ||
- Heuristic == AllInOneGlobalPool) return false;
+ if (GlobalHeapNodes.empty() &&
+ Heuristic != AllInOneGlobalPool) return false;
// Otherwise get the main function to insert the poolinit calls.
Function *MainFunc = M.getMainFunction();
More information about the llvm-commits
mailing list