We have a number of cases where we fail to reduce vector op widths, performing the op in a larger vector and then extracting a subvector. This is often because by default it would create illegal types.
This peephole patch attempts to handle a few common cases detailed in PR36761, which typically involved extension+conversion to vX2f64 types.
The current code isn't very generic - I'm not sure how many more cases we may need to support in the future?
getValueType() -> getSimpleValueType()