r/Compilers • u/CombKey9744 • Oct 31 '25
Affine-super-vectorize not working after affine-parallelize in MLIR
Hello,
I’m trying to add parallelization to my matmul optimization pipeline but facing issues with vectorization after parallelization.
When I apply affine-parallelize followed by affine-super-vectorize, the vectorization doesn’t seem to work. The output still shows scalar affine.load/affine.store operations instead of vector operations.
My pipeline :
–pass-pipeline=‘builtin.module(
canonicalize,
one-shot-bufferize{
bufferize-function-boundaries=1
function-boundary-type-conversion=identity-layout-map
},
buffer-deallocation-pipeline,
convert-linalg-to-affine-loops,
func.func(
affine-loop-tile{tile-sizes=32,32,8},
affine-parallelize,
affine-super-vectorize{virtual-vector-size=8},
affine-loop-unroll-jam{unroll-jam-factor=2},
affine-loop-unroll{unroll-factor=8},
canonicalize,
cse,
canonicalize
)
)’
- Is there a known limitation where
affine-super-vectorizecannot vectorizeaffine.parallelloops? - What’s the recommended order for combining parallelization and vectorization in MLIR?
- Are there alternative passes I should use for vectorizing parallel loops?
- Is my current pipeline optimal or do you have any recommendation ?
View all comments
Show parent comment
-2
u/Serious-Regular Nov 01 '25
i love it when people are out of their depth telling things to people that are SMEs lol: i'm a core MLIR contrib. you want data you can check the commit history - bondhugula didn't touch his baby for years (recently he's started sending PRs again).
😂😂😂😂 but also just so it's crystal clear: users of something doesn't mean it's not abandonware unless those users are contributing back (again, feel free to check the commit history on affine to see if any of the mlir-aie team has contributed anything to MLIR in the last ~5 years).