[all-commits] [llvm/llvm-project] 205246: [CompileTime] [Passes] Avoid computing unnecessary...

annamthomas via All-commits all-commits at lists.llvm.org
Fri Apr 29 07:00:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 205246cb64358aa6f03b54d47d73708122d76bbf
      https://github.com/llvm/llvm-project/commit/205246cb64358aa6f03b54d47d73708122d76bbf
  Author: Anna Thomas <anna at azul.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/SCCP/preserve-analysis.ll

  Log Message:
  -----------
  [CompileTime] [Passes] Avoid computing unnecessary analyses. NFC

Similar to c515b2f39e77, If there are no loops in the function as seen
through LI, we should avoid computing the remaining expensive analyses
(such as SCEV, BPI).  Reordered the analyses requests and early return
if there are no loops.

The logic of avoiding expensive analyses is applied to LoopVectorizer,
LoopLoadElimination and LoopUnrollPass, i.e. all function passes which operate
on loops.

This is an NFC with compile time improvement.

Differential Revision: https://reviews.llvm.org/D124529




More information about the All-commits mailing list