[PATCH] D32983: Fix code section prefix for proper layout
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 18:56:51 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302502: Fix code section prefix for proper layout (authored by tejohnson).
Changed prior to commit:
https://reviews.llvm.org/D32983?vs=98227&id=98247#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32983
Files:
llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
Index: llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
===================================================================
--- llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
+++ llvm/trunk/test/Transforms/CodeGenPrepare/section.ll
@@ -35,7 +35,7 @@
}
; CHECK: ![[HOT_ID]] = !{!"function_section_prefix", !".hot"}
-; CHECK: ![[COLD_ID]] = !{!"function_section_prefix", !".cold"}
+; CHECK: ![[COLD_ID]] = !{!"function_section_prefix", !".unlikely"}
!llvm.module.flags = !{!1}
!1 = !{i32 1, !"ProfileSummary", !2}
!2 = !{!3, !4, !5, !6, !7, !8, !9, !10}
Index: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
@@ -295,7 +295,7 @@
if (PSI->isFunctionHotInCallGraph(&F))
F.setSectionPrefix(".hot");
else if (PSI->isFunctionColdInCallGraph(&F))
- F.setSectionPrefix(".cold");
+ F.setSectionPrefix(".unlikely");
}
/// This optimization identifies DIV instructions that can be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32983.98247.patch
Type: text/x-patch
Size: 1075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170509/6a779d9e/attachment.bin>
More information about the llvm-commits
mailing list