mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user