Make CodePlacementOpt align loops, rather than loop headers. The
authorDan Gohman <gohman@apple.com>
Thu, 15 Oct 2009 00:36:22 +0000 (00:36 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 15 Oct 2009 00:36:22 +0000 (00:36 +0000)
commitcd2ae14ce3f16f0cef162aa85707f32295c4ee3d
tree9c5c5e06172adee6e626318c24a3e6e276370dfe
parenta2f80471345960c971825a053d22ec886a2ab514
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
lib/CodeGen/CodePlacementOpt.cpp
test/CodeGen/X86/avoid-loop-align-2.ll
test/CodeGen/X86/avoid-loop-align.ll