diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-02-05 20:32:42 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-02-05 20:32:42 +0000 |
commit | 00ab73dcb0d602608a0851bb61aa378ef5ed3215 (patch) | |
tree | 9f91afb9d83302741264ff4b8d8e74fc4591e62c /llvm/lib/Analysis/InlineCost.cpp | |
parent | 1de2d44dcf9507fce06d9dd1629dcbec4685ccb2 (diff) | |
download | bcm5719-llvm-00ab73dcb0d602608a0851bb61aa378ef5ed3215.tar.gz bcm5719-llvm-00ab73dcb0d602608a0851bb61aa378ef5ed3215.zip |
CallAnalyzer::analyzeCall: change the condition back to "Cost < Threshold"
In r252595, I inadvertently changed the condition to "Cost <= Threshold",
which caused a significant size regression in Chrome. This commit rectifies
that.
llvm-svn: 259915
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 387077bb013..b4138b2909c 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -1392,7 +1392,7 @@ bool CallAnalyzer::analyzeCall(CallSite CS) { else if (NumVectorInstructions <= NumInstructions / 2) Threshold -= (FiftyPercentVectorBonus - TenPercentVectorBonus); - return Cost <= std::max(0, Threshold); + return Cost < std::max(1, Threshold); } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) |