Commit ef83c04
committed
[SLP] Optimize getSpillCost(); NFCI
For a given set of live values, the spill cost will always be the
same for each call. Compute the cost once and multiply it by the
number of calls.
(I'm not sure this spill cost modeling makes sense if there are
multiple calls, as the spill cost will likely be shared across
calls in that case. But that's how it currently works.)
llvm-svn: 3655521 parent 2902abd commit ef83c04
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3355 | 3355 | | |
3356 | 3356 | | |
3357 | 3357 | | |
| 3358 | + | |
3358 | 3359 | | |
3359 | 3360 | | |
3360 | 3361 | | |
| |||
3367 | 3368 | | |
3368 | 3369 | | |
3369 | 3370 | | |
3370 | | - | |
3371 | | - | |
3372 | | - | |
3373 | | - | |
3374 | | - | |
3375 | | - | |
| 3371 | + | |
| 3372 | + | |
3376 | 3373 | | |
3377 | 3374 | | |
3378 | 3375 | | |
3379 | 3376 | | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
3380 | 3384 | | |
3381 | 3385 | | |
3382 | 3386 | | |
| |||
0 commit comments