[all-commits] [llvm/llvm-project] 984d1b: Remove empty AffineExpr stride canonicalization in...
Tres via All-commits
all-commits at lists.llvm.org
Mon Aug 1 02:16:06 PDT 2022
Author: Tres Popp <tpopp at google.com>
Date: 2022-08-01 (Mon, 01 Aug 2022)
Remove empty AffineExpr stride canonicalization in makeCanonicalStridedLayoutExpr
The "optimization" would replace the AffineMap for an empty shape with a 0 to represent its indexing (stride * dimension) logic. Meanwhile other pieces of core logic (such as getStridesAndOffset and makeStridedLinearLayoutMap) require strides for all dimensions to ensure no aliasing can occur which would occur if the shape was not empty. For now, this optimization is removed as different pieces of core types disagree on this, so the optimization should be caller supplied or should be consistent throughout the infrastructure.
Differential Revision: https://reviews.llvm.org/D130772
More information about the All-commits