summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2018-10-31 22:45:31 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2018-10-31 22:45:31 +0000
commit1979b11ce93259eb8a9194b4b12c839e7ad2469d (patch)
tree0b75bf045bf77adf2c8075fe930945c1783b4b53
parent06a4bd9d20b119f6044e90a36e03435c9bd79a80 (diff)
downloadbcm5719-llvm-1979b11ce93259eb8a9194b4b12c839e7ad2469d.tar.gz
bcm5719-llvm-1979b11ce93259eb8a9194b4b12c839e7ad2469d.zip
[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. llvm-svn: 345789
-rw-r--r--llvm/include/llvm/Analysis/InlineCost.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h
index 529fb75bec9..4c270354b0c 100644
--- a/llvm/include/llvm/Analysis/InlineCost.h
+++ b/llvm/include/llvm/Analysis/InlineCost.h
@@ -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;
OpenPOWER on IntegriCloud