[all-commits] [llvm/llvm-project] 3d4c04: [SCEV] Use isBasicBlockEntryGuardedByCond in isLoo...

max-azul via All-commits all-commits at lists.llvm.org
Thu Nov 26 02:13:49 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d4c0460ec6040fc071e56dc113afd181294591e
      https://github.com/llvm/llvm-project/commit/3d4c0460ec6040fc071e56dc113afd181294591e
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-11-26 (Thu, 26 Nov 2020)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll

  Log Message:
  -----------
  [SCEV] Use isBasicBlockEntryGuardedByCond in isLoopBackedgeGuardedByCond

Previously we tried to using isKnownPredicateAt, but it makes an
extra query to isKnownPredicate, which has negative impact on compile
time. Let's try to use more lightweight isBasicBlockEntryGuardedByCond.

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




More information about the All-commits mailing list