[all-commits] [llvm/llvm-project] a7322a: [LICM] Delay fetching of preheader (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 10 07:17:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7322a2171e99fe9c465c3e13c49563b19402ae0
      https://github.com/llvm/llvm-project/commit/a7322a2171e99fe9c465c3e13c49563b19402ae0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

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

  Log Message:
  -----------
  [LICM] Delay fetching of preheader (NFC)

Only fetch preheader once we want to actually hoist. It turns out
that calculating the preheader is expensive enough to affect
overall compile-time if you do it for every single instruction.

Addresses the compile-time regression from D143726.




More information about the All-commits mailing list