diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-09 20:24:44 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-09 20:24:44 +0000 |
commit | 5ca39e828c893f6fa823ea0cc5f2a8b9e19cecc7 (patch) | |
tree | 8306197f48871e61bf4776537004aa3f64447488 /clang/lib/Basic/Targets/OSTargets.cpp | |
parent | 1366262b74ddbfe98fc1817f2ea9e3af451c4a05 (diff) | |
download | bcm5719-llvm-5ca39e828c893f6fa823ea0cc5f2a8b9e19cecc7.tar.gz bcm5719-llvm-5ca39e828c893f6fa823ea0cc5f2a8b9e19cecc7.zip |
[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: 365552
Diffstat (limited to 'clang/lib/Basic/Targets/OSTargets.cpp')
0 files changed, 0 insertions, 0 deletions