aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-24 18:20:03 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-24 18:28:19 +0100
commit8a168d2d70678164004fca8de78e98bfb6e1272d (patch)
treef6eb15cc73af8abd29d00c030fb140ee85aacbf2 /llvm/lib/Transforms/Utils/Utils.cpp
parent0bf833f670bdc42009b0ff208e8266f528e0a82c (diff)
downloadllvm-8a168d2d70678164004fca8de78e98bfb6e1272d.zip
llvm-8a168d2d70678164004fca8de78e98bfb6e1272d.tar.gz
llvm-8a168d2d70678164004fca8de78e98bfb6e1272d.tar.bz2
[LICM] Fix NumSunk statistic (NFC)
LICM can sink instructions that have uses inside the loop, as long as these uses are considered "free". However, if there were only free uses inside the loop, and no uses outside the loop at all, the instruction would still count towards the NumSunk statistic. This resulted in a wild inflation of the NumSunk metric. After this patch it drops down from 1141787 to 5852 on test-suite O3.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions