As the Matrix intrinsic lowering pass is not running at -O0, code using the matrix extension results in a backend crash.
Diff Detail
Event Timeline
There is already a patch to run a simple version of the lowering as part of the target pipelines D76858. I didn't land it yet, as I first wanted to come up with a lightweight system to figure out if the lowering pass actually needs to run on a function beforehand, to keep compile times low, if no matrix intrinsics are present. But I did not have time to wrap this up yet.
I just committed a similar fix upstream, because there are some bots building the test-suite with -O0, to unblock them. The proper fix (run in lightweight lowering in the backend) will need a bit more time unfortunately.
Cheers.
And I will commit the test of this patch then as that still seems useful to me.
Okay, committing the test was an interesting exercise, that show there's a bot running the new pass manager which isn't happy with us:
I guess that means we have to sort out the passes for the NPM too @fhahn ?
Probably best if I revert my little test changes for now.
I needed a few attempts :-( but have left a FIXME in the test case, and have disabled it by commented out the -O0 test in rG0160ad802e89.
Just checking again to avoid duplication: are you looking into enabling this with the NPM too? I wouldn't mind having a look.
I probably won't have time to do so in the next few days, so if you would like to put up a patch, that would be great!