Commit e2d1058
committed
Fix inliner size scaling based on number of calls
When scaling the estimated size of a candidate for inlining based on
frequency and the number of estimated calls nested in the candidate, the
calculation inadvertently ignores the number of estimated calls and uses
a value derived from the frequency twice. This doesn't appear to be the
intention of the code at all.
Signed-off-by: Younes Manton <ymanton@ca.ibm.com>1 parent b396023 commit e2d1058
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4147 | 4147 | | |
4148 | 4148 | | |
4149 | 4149 | | |
4150 | | - | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
4151 | 4153 | | |
4152 | | - | |
| 4154 | + | |
4153 | 4155 | | |
4154 | 4156 | | |
4155 | 4157 | | |
| |||
0 commit comments