diff options
author | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2023-07-31 12:00:48 +0100 |
---|---|---|
committer | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2023-08-02 12:41:13 +0100 |
commit | 5bfefff1c44fd992b673e1ff9c9f1865f9d81af1 (patch) | |
tree | 7db7476afcc4b8dce1037a6502057e1bd0093a35 /llvm/docs/CommandGuide | |
parent | d1d0e135a16431001684ffd480da9ec6796c6659 (diff) | |
download | llvm-5bfefff1c44fd992b673e1ff9c9f1865f9d81af1.zip llvm-5bfefff1c44fd992b673e1ff9c9f1865f9d81af1.tar.gz llvm-5bfefff1c44fd992b673e1ff9c9f1865f9d81af1.tar.bz2 |
Reland [FuncSpec] Split the specialization bonus into CodeSize and Latency.
Currently we use a combined metric TargetTransformInfo::TCK_SizeAndLatency
when estimating the specialization bonus. This is suboptimal, and in some
cases erroneous. For example we shouldn't be weighting the codesize decrease
attributed to constant propagation by the block frequency of the dead code.
Instead only the latency savings should be weighted by block frequency. The
total codesize savings from all the specialization arguments should be
deducted from the specialization cost.
Differential Revision: https://reviews.llvm.org/D155103
Diffstat (limited to 'llvm/docs/CommandGuide')
0 files changed, 0 insertions, 0 deletions