[Mlir-commits] [mlir] [mlir][Affine] Let affine.[de]linearize_index omit outer bounds (PR #116103)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 18 11:23:55 PST 2024
================
@@ -4576,6 +4600,20 @@ AffineDelinearizeIndexOp::fold(FoldAdaptor adaptor,
return success();
}
+SmallVector<OpFoldResult> AffineDelinearizeIndexOp::getEffectiveBasis() {
+ OpBuilder builder(getContext());
+ if (hasOuterBound()) {
----------------
MaheshRavishankar wrote:
I am trying to understand why this is not just
```
auto mixedBasis = getMixedBasis(...);
if (!hasOuterBound()) {
return llvm::to_vector(mixedBasis.drop_front());
}
return mixedBasis;
```
https://github.com/llvm/llvm-project/pull/116103
More information about the Mlir-commits
mailing list