summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/avoid-loop-align-2.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-15 00:36:22 +0000
committerDan Gohman <gohman@apple.com>2009-10-15 00:36:22 +0000
commitc9af381df8b6279c9a7357dd6ea22053e25463d0 (patch)
tree80bade8628560d9c29b8169f2a8528ca642aba6f /llvm/test/CodeGen/X86/avoid-loop-align-2.ll
parent8070b82d9115ea4db08a650c8a787e99d04f34dc (diff)
downloadbcm5719-llvm-c9af381df8b6279c9a7357dd6ea22053e25463d0.tar.gz
bcm5719-llvm-c9af381df8b6279c9a7357dd6ea22053e25463d0.zip
Make CodePlacementOpt align loops, rather than loop headers. The
header is just the entry block to the loop, and it needn't be at the top of the loop in the code layout. Remove the code that suppressed loop alignment for outer loops, so that outer loops are aligned. llvm-svn: 84158
Diffstat (limited to 'llvm/test/CodeGen/X86/avoid-loop-align-2.ll')
-rw-r--r--llvm/test/CodeGen/X86/avoid-loop-align-2.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/avoid-loop-align-2.ll b/llvm/test/CodeGen/X86/avoid-loop-align-2.ll
index 03e69e7a1a4..fc9d1f0428f 100644
--- a/llvm/test/CodeGen/X86/avoid-loop-align-2.ll
+++ b/llvm/test/CodeGen/X86/avoid-loop-align-2.ll
@@ -1,4 +1,8 @@
-; RUN: llc < %s -march=x86 | grep align | count 3
+; RUN: llc < %s -march=x86 | grep align | count 4
+
+; TODO: Is it a good idea to align inner loops? It's hard to know without
+; knowing what their trip counts are, or other dynamic information. For
+; now, CodeGen aligns all loops.
@x = external global i32* ; <i32**> [#uses=1]
OpenPOWER on IntegriCloud