commit | eac7f31901a1ff621250b0f7070cf355e089f0e0 | [log] [tgz] |
---|---|---|
author | Jessica Paquette <jpaquette@apple.com> | Tue Oct 03 20:32:55 2017 +0000 |
committer | Jessica Paquette <jpaquette@apple.com> | Tue Oct 03 20:32:55 2017 +0000 |
tree | e9e508cabd257a130e1448106f6b17e23afac9bc | |
parent | 62322d8c8e0016ff4c7c26c4c25ca21e66d31e7a [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314836 91177308-0d34-0410-b5e6-96231b3b80d8