[NFC] Move functon from IndVarSimplify to SCEV
authorMax Kazantsev <mkazantsev@azul.com>
Wed, 9 Sep 2020 04:20:59 +0000 (11:20 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Wed, 9 Sep 2020 04:20:59 +0000 (11:20 +0700)
commit795e4ee9d2db386a45dc12e6ead21f5f3151d05c
tree05cd206abaf8a75afb15751a14b209cc2afea691
parent1bb1eac6b177739429e78703b265e7546792fd64
[NFC] Move functon from IndVarSimplify to SCEV

This function can be reused in other places.

Differential Revision: https://reviews.llvm.org/D87274
Reviewed By: fhahn, lebedev.ri
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp