[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 2 18:39:08 PST 2005
Changes in directory llvm-poolalloc/lib/PoolAllocate:
Heuristic.cpp updated: 1.7 -> 1.8
---
Log message:
Right, use an alignment of 8/4, not 1/0
---
Diffs of the changes: (+1 -1)
Heuristic.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp:1.7 llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp:1.8
--- llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp:1.7 Wed Mar 2 20:35:02 2005
+++ llvm-poolalloc/lib/PoolAllocate/Heuristic.cpp Wed Mar 2 20:38:52 2005
@@ -95,7 +95,7 @@
if (Ty == Type::VoidTy) // Is this void or collapsed?
return 0; // No known alignment, let runtime decide.
- return Wants8ByteAlignment(Ty, 0, TD);
+ return Wants8ByteAlignment(Ty, 0, TD) ? 8 : 4;
}
/// getRecommendedAlignment - Return the recommended object alignment for this
More information about the llvm-commits
mailing list