summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2017-10-03 20:32:55 +0000
committerJessica Paquette <jpaquette@apple.com>2017-10-03 20:32:55 +0000
commitacc15e1265862ec9629b870b52298702a48e7e5e (patch)
tree14399f226c6924a95e2da340f4cd47bbb9427232 /llvm/lib/CodeGen/MachineSink.cpp
parente1d75472373e6fcf4c2ca81dc343162724358434 (diff)
downloadbcm5719-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/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud