[PowerPC] Use 16-byte alignment for modern cores for functions/loops
authorHal Finkel <hfinkel@anl.gov>
Sat, 3 Jan 2015 14:58:25 +0000 (14:58 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 3 Jan 2015 14:58:25 +0000 (14:58 +0000)
commita1d22cc78923d1450592a9e5823bbb68ee47786f
tree1cbd13d9471b5e680f85b07d555a89a2eb347896
parent00d70e98f0c7801d1a6a55535087b1511f71b580
[PowerPC] Use 16-byte alignment for modern cores for functions/loops

Most modern PowerPC cores prefer that functions and loops start on
16-byte-aligned boundaries (*), so instruct block placement, etc. to make this
happen. The branch selector has also been adjusted so account for the extra
nops that might now be inserted before loop headers.

(*) Some cores actually prefer other alignments for small loops, but that will
    be addressed in a follow-up commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225115 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCBranchSelector.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/code-align.ll [new file with mode: 0644]