[all-commits] [llvm/llvm-project] c515b2: [IRCE] Avoid computing potentially unnecessary ana...

annamthomas via All-commits all-commits at lists.llvm.org
Wed Apr 27 06:22:22 PDT 2022


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

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

  Log Message:
  -----------
  [IRCE] Avoid computing potentially unnecessary analyses. NFC

IRCE is a function pass that operates on loops. If there are no loops in
the function (as seen through LI), we should avoid computing the
remaining expensive analyses (such as BPI). Reordered the analyses
requests and early return if there are no loops. This is an NFC with
compile time improvement.

The same will be done in a follow-up patch for the loop vectorizer.

Reviewed-By: nikic
Differential Revision: https://reviews.llvm.org/D124478




More information about the All-commits mailing list