]> granicus.if.org Git - llvm/commit
Fix code section prefix for proper layout
authorTeresa Johnson <tejohnson@google.com>
Tue, 9 May 2017 01:43:24 +0000 (01:43 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 9 May 2017 01:43:24 +0000 (01:43 +0000)
commitbb895937240aa8a29d116703f822c2efa109f5de
treec9ba430facaf88c20a6be980c3dbdd8dea8207ff
parent9c50cf0c6d8f0b11cd76a28cc4ef9bca6ef732e0
Fix code section prefix for proper layout

Summary:
r284533 added hot and cold section prefixes based on profile
information, to enable grouping of hot/cold functions at link time.
However, it used "cold" as the prefix for cold sections, but gold only
recognizes "unlikely" (which is used by gcc for cold sections).
Therefore, cold sections were not properly being grouped. Switch to
using "unlikely"

Reviewers: danielcdh, davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32983

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302502 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/section.ll