summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/Refactoring
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-10-25 08:23:33 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-10-25 08:23:33 +0000
commit238c14b6c7970b1d6f48ef2c5ad35c772f1dee3d (patch)
treefd0d0274e868ff656924367cdc63726e063b14dd /clang/lib/Tooling/Refactoring
parentdd45ea16f3e4ed9aba5b5f70d35edaa15abcf354 (diff)
downloadbcm5719-llvm-238c14b6c7970b1d6f48ef2c5ad35c772f1dee3d.tar.gz
bcm5719-llvm-238c14b6c7970b1d6f48ef2c5ad35c772f1dee3d.zip
[MachineScheduler] Minor refactoring.
Duplicated code found in three places put into a new static function: /// Given a Count of resource usage and a Latency value, return true if a /// SchedBoundary becomes resource limited. static bool checkResourceLimit(unsigned LFactor, unsigned Count, unsigned Latency) { return (int)(Count - (Latency * LFactor)) > (int)LFactor; } Review: Florian Hahn, Matthias Braun https://reviews.llvm.org/D39235 llvm-svn: 316560
Diffstat (limited to 'clang/lib/Tooling/Refactoring')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud