[PATCH] D69384: Add unlikely attribute to outlined function

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 07:02:30 PDT 2019


hiraditya created this revision.
hiraditya added reviewers: vsk, tejohnson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69384

Files:
  llvm/lib/Transforms/IPO/HotColdSplitting.cpp


Index: llvm/lib/Transforms/IPO/HotColdSplitting.cpp
===================================================================
--- llvm/lib/Transforms/IPO/HotColdSplitting.cpp
+++ llvm/lib/Transforms/IPO/HotColdSplitting.cpp
@@ -159,6 +159,7 @@
     Changed = true;
   }
 
+  F.setSectionPrefix(".unlikely");
   return Changed;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69384.226251.patch
Type: text/x-patch
Size: 326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191024/5b4499c2/attachment.bin>


More information about the llvm-commits mailing list