[PATCH] D20603: [Inline] Add ability to restrict inlining pass to hinted functions only
David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 15:41:35 PDT 2016
davidxl added a subscriber: davidxl.
================
Comment at: lib/Transforms/IPO/InlineSimple.cpp:61
@@ -55,1 +60,3 @@
: Inliner(ID), DefaultThreshold(Threshold) {
+ RestrictToHinted = RestrictInlineToHinted.getNumOccurrences() > 0 ?
+ RestrictInlineToHinted : OnlyHint;
----------------
RestrictedToHinted = (OnlyHint || RestrictedInlinetoHinted);
http://reviews.llvm.org/D20603
More information about the llvm-commits
mailing list