From cd2ae14ce3f16f0cef162aa85707f32295c4ee3d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 15 Oct 2009 00:36:22 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84158 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avoid-loop-align.ll | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/CodeGen/X86/avoid-loop-align.ll') diff --git a/test/CodeGen/X86/avoid-loop-align.ll b/test/CodeGen/X86/avoid-loop-align.ll index 3e68f9486c..d4c5c67232 100644 --- a/test/CodeGen/X86/avoid-loop-align.ll +++ b/test/CodeGen/X86/avoid-loop-align.ll @@ -1,4 +1,11 @@ -; RUN: llc < %s -mtriple=i386-apple-darwin | grep align | count 1 +; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s + +; CodeGen should align the top of the loop, which differs from the loop +; header in this case. + +; CHECK: jmp LBB1_2 +; CHECK: .align +; CHECK: LBB1_1: @A = common global [100 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=1] -- cgit v1.2.3