[all-commits] [llvm/llvm-project] 509714: [SCEV][NFC] Move check up the stack

max-azul via All-commits all-commits at lists.llvm.org
Tue Mar 16 08:09:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5097143f0e7124d73646daa5de5d205579b9f7d2
      https://github.com/llvm/llvm-project/commit/5097143f0e7124d73646daa5de5d205579b9f7d2
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [SCEV][NFC] Move check up the stack

One of (and primary) callers of isBasicBlockEntryGuardedByCond is
isKnownPredicateAt, which makes isKnownPredicate check before it.
It already makes non-recursive check inside. So, on this execution
path this check is made twice. The only other caller is
isLoopEntryGuardedByCond. Moving the check there should save some
compile time.




More information about the All-commits mailing list