[TTI] Change new getVectorInstrCost overload to use const reference after D131114

A const reference is preferred over a non-null const pointer.
`Type *` is kept as is to match the other overload.

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D131197

GitOrigin-RevId: 7d6017fd311280937726e565655fdd5a5c4d0e4d
7 files changed