[SCEV][NFC] Smarter implementation of isAvailableAtLoopEntry
authorMax Kazantsev <max.kazantsev@azul.com>
Tue, 13 Mar 2018 07:46:06 +0000 (07:46 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Tue, 13 Mar 2018 07:46:06 +0000 (07:46 +0000)
commit2371e0a1c853ea8b9c562d34c9aba6b8f4ccc379
tree520a7af3c3576de171028d9d2ee3be460f68cf26
parent9f0b3170bcea739ce54af7cc2819cc3287c123d0
[SCEV][NFC] Smarter implementation of isAvailableAtLoopEntry

isAvailableAtLoopEntry duplicates logic of `properlyDominates` after checking invariance.
This patch replaces this logic with invocation of this method which is more profitable
because it supports caching.

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

llvm-svn: 327373
llvm/lib/Analysis/ScalarEvolution.cpp