> So it's quite conservative, essentially using vector configuration as a > sort key of last resort and only for the highest priority insns in the > ready queue and only when it's going to let us eliminate a vsetvl.
On the one hand I wondered if it does make sense to re-use compatible_p from the vsetvl pass for the match check but on the other hand I don't see a clear gain by doing that and it would increase the complexity significantly. So your approach makes sense to me. My first very simple attempt with re-ordering actually involved only the last vector mode but I didn't continue with that attempt. Out of curiosity, did you try that as well at some point? -- Regards Robin