[SROA] convertValue(): we can have <N x iK> to <M x iQ*> cast
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Jun 2020 18:12:19 +0000 (21:12 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 24 Jun 2020 21:58:53 +0000 (00:58 +0300)
commit07a23c06dd9c616fc24410f8cdbc8b4797b31cdc
tree6647f706563995033b662bef8560350cda6d2d75
parent2b8d706b19c0e049da3eb62572b08af72ba2e5e6
[SROA] convertValue(): we can have <N x iK> to <M x iQ*> cast

Provided test case crashes otherwise.

If NewTy is already DL.getIntPtrType(NewTy),
CreateBitCast() won't actually create any bitcast,
so we are better off just doing the general thing.
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/vector-conversion.ll