HomePhabricator

[SCEV][NFC] Move check up the stack

Authored by mkazantsev on Mar 16 2021, 7:27 AM.

Description

[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.

Details

Committed
mkazantsevMar 16 2021, 8:09 AM
Parents
rG229eeb187d42: [RISCV] Look through copies when trying to find an implicit def in addVSetVL.
Branches
Unknown
Tags
Unknown