diff options
| author | Jessica Paquette <jpaquette@apple.com> | 2017-10-03 20:32:55 +0000 |
|---|---|---|
| committer | Jessica Paquette <jpaquette@apple.com> | 2017-10-03 20:32:55 +0000 |
| commit | acc15e1265862ec9629b870b52298702a48e7e5e (patch) | |
| tree | 14399f226c6924a95e2da340f4cd47bbb9427232 /llvm/lib/CodeGen/LiveVariables.cpp | |
| parent | e1d75472373e6fcf4c2ca81dc343162724358434 (diff) | |
| download | bcm5719-llvm-acc15e1265862ec9629b870b52298702a48e7e5e.tar.gz bcm5719-llvm-acc15e1265862ec9629b870b52298702a48e7e5e.zip | |
[MachineOutliner] Fix off-by-one in cost model
This commit does two things. Firstly, it cleans up some of the benefit
calculation wrt outlined functions and candidates. Secondly, it fixes an
off-by-one bug in the cost model which was caused by the benefit value of
an OutlinedFunction and Candidate differing by 1. It updates the remarks test
to reflect this change.
llvm-svn: 314836
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions

