mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 05:24:16 +00:00
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
This commit is contained in:
parent
62bd130ca7
commit
bebc5b5d9d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user