llvm-project
72b7daf8 - [mlir][linalg] Fix vectorization precondition for tensor.pad (#175869)

Commit
42 days ago
[mlir][linalg] Fix vectorization precondition for tensor.pad (#175869) This changes `padOp.getLow()` to `padOp.getMixedLowPad()` in `vectorizePadOpPrecondition()`. The `getMixedLowPad()` function correctly returns both static and dynamic padding values, ensuring that the indexing is correct when checking for non-zero low padding on non-unit result dimensions. Using the added test as an example, `getLow()` would only return `%low`, which means `en.index()` would be 0 instead of the correct dimension index 1. --------- Signed-off-by: Ian Wood <ianwood@u.northwestern.edu>
Author
Parents
Loading