aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp
diff options
context:
space:
mode:
authorPengxuan Zheng <pzheng@quicinc.com>2022-09-15 17:52:46 -0700
committerPengxuan Zheng <pzheng@quicinc.com>2022-09-16 13:35:17 -0700
commit59365f33e27b24b6ecc971c53889c8ac3b34b15d (patch)
tree5d277a851d97a44c67251437c5d61f86aed7d270 /bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp
parent1121eca685a39c1fc370daa65ff918a3cd490dc4 (diff)
downloadllvm-59365f33e27b24b6ecc971c53889c8ac3b34b15d.zip
llvm-59365f33e27b24b6ecc971c53889c8ac3b34b15d.tar.gz
llvm-59365f33e27b24b6ecc971c53889c8ac3b34b15d.tar.bz2
[MachineCSE] Add a threshold to avoid spending too much time in isProfitableToCSE
Currently, it can become extremely costly to compute MayIncreasePressure if the size of CSUses turns out to be very large. In that case, it's no longer cost effective to keep computing MayIncreasePressure. Therefore, to limit the amount of time spent in isProfitableToCSE, we simply conservatively assume MayIncreasePressure if the size of CSUses is too large. This can reduce overall compile time by 30% for some benchmarks. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D134003
Diffstat (limited to 'bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions