HomePhabricator

[Inliner] Optimize shouldBeDeferred

Description

[Inliner] Optimize shouldBeDeferred

This has some minor optimizations to shouldBeDeferred. This is not
strictly NFC because the early exit inside the loop assumes
TotalSecondaryCost is monotonically non-decreasing, which is not true if
the threshold used by CostAnalyzer is negative. AFAICT the thresholds do
not go below 0 for the default values of the various options we use.

Details

Committed
eramanJan 4 2019, 6:26 PM
Parents
rL350455: [X86] Require second operand of X86vshiftuniform to be an integer. NFC
Branches
Unknown
Tags
Unknown