[SCEV] Put some utilites in the ScalarEvolution class
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 13 Oct 2015 02:53:27 +0000 (02:53 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 13 Oct 2015 02:53:27 +0000 (02:53 +0000)
commit1cf9f8137160e4dca68dff0310f0292d1ec75e8e
tree80cefbfa13ba6e073267a11e86f447fad20640fb
parent5270f8871afccf775ccd118ad630ae63b5280312
[SCEV] Put some utilites in the ScalarEvolution class

In a later commit, `SplitBinaryAdd` will be used outside `IsConstDiff`,
so lift that out.  And lift out `IsConstDiff` as
`computeConstantDifference` to keep things clean and to avoid playing
C++ access specifier games.

NFC.

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