mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user