[llvm] r345789 - [InlineCost] Remove a dead constant; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 31 15:45:31 PDT 2018
Author: gbiv
Date: Wed Oct 31 15:45:31 2018
New Revision: 345789
URL: http://llvm.org/viewvc/llvm-project?rev=345789&view=rev
Log:
[InlineCost] Remove a dead constant; NFC
My `grep`-fu indicates that this hasn't been used for years. It also no
longer makes much sense to have this flavor of penalty in general, since
a call to a noreturn should mean that we're in a BB that's terminated by
`unreachable`. That case is accounted for by
CallAnalyzer::allowSizeGrowth.
Modified:
llvm/trunk/include/llvm/Analysis/InlineCost.h
Modified: llvm/trunk/include/llvm/Analysis/InlineCost.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/InlineCost.h?rev=345789&r1=345788&r2=345789&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/InlineCost.h (original)
+++ llvm/trunk/include/llvm/Analysis/InlineCost.h Wed Oct 31 15:45:31 2018
@@ -46,7 +46,6 @@ const int IndirectCallThreshold = 100;
const int CallPenalty = 25;
const int LastCallToStaticBonus = 15000;
const int ColdccPenalty = 2000;
-const int NoreturnPenalty = 10000;
/// Do not inline functions which allocate this many bytes on the stack
/// when the caller is recursive.
const unsigned TotalAllocaSizeRecursiveCaller = 1024;
More information about the llvm-commits
mailing list