https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37131
--- Comment #16 from Mikael Morin <mikael at gcc dot gnu.org> --- (In reply to Thomas Koenig from comment #15) > Hi Mikael, > > do you think you can do this using the scalarizer? > Not in its current state. And as I don't see the scalarizer being changed soon to allow it, you're better off trying with the frontend optimization framework. I thought inlining sum with the scalarizer would make inlining matmul easy because it would allow the scalarizer to support arrays as result of nested reductions. But matmul is different from sum, so it's actually not that easy.