`widenconst` before type check in SROA (#49642)
* `widenconst` before type check in SROA
These days, mutable structs can be `PartialStruct` if one of the
fields is annotated as `const`, so we need to widenconst before
this check.
* Update test/compiler/irpasses.jl
Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>
---------
Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com>