[all-commits] [llvm/llvm-project] 8a168d: [LICM] Fix NumSunk statistic (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Mar 24 10:28:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a168d2d70678164004fca8de78e98bfb6e1272d
      https://github.com/llvm/llvm-project/commit/8a168d2d70678164004fca8de78e98bfb6e1272d
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LICM.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list