petar-avramovic wrote: rewrite using widen scalar (knows how to delete same type bitcast), legalize action is a bit awkward, need to make sure to not widen for vector to scalar bitcast (this is lower action) https://github.com/llvm/llvm-project/pull/208750