This is more a bug report than an earnest patch. The GlobalOpt pass is ICE'ing on scalable vector types. I've included a little patch to bail out if a scalable type is seen, but I'm not sure if that's still the current best practice for handling passes that haven't been updated for scalable vector types.
If this patch is acceptable, I'll be happy to commit the change...