OSDN Git Service

[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)
commit4f23838f56163df5291503f18c84a579961c313f
treeb7bf607d0ce5207625a6fe06dc01bdf1f67ae483
parentcfe9a0e9053a9bc25bfdaf718f0f74fd8f034b10
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp