move findArrayDimensions to ScalarEvolution

we do not use the information from SCEVAddRecExpr to compute the shape of the array,
so a better place for this function is in ScalarEvolution.

llvm-svn: 208456
This commit is contained in:
Sebastian Pop
2014-05-09 22:45:07 +00:00
parent 444621abe1
commit 47fe7de1b5
4 changed files with 15 additions and 16 deletions

View File

@@ -3195,7 +3195,7 @@ DependenceAnalysis::tryDelinearize(const SCEV *SrcSCEV, const SCEV *DstSCEV,
// Second step: find subscript sizes.
SmallVector<const SCEV *, 4> Sizes;
SrcAR->findArrayDimensions(*SE, Terms, Sizes);
SE->findArrayDimensions(Terms, Sizes);
// Third step: compute the access functions for each subscript.
SmallVector<const SCEV *, 4> SrcSubscripts, DstSubscripts;