summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/OSTargets.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-09 20:24:44 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-07-09 20:24:44 +0000
commit5ca39e828c893f6fa823ea0cc5f2a8b9e19cecc7 (patch)
tree8306197f48871e61bf4776537004aa3f64447488 /clang/lib/Basic/Targets/OSTargets.cpp
parent1366262b74ddbfe98fc1817f2ea9e3af451c4a05 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud