Reapply [ConstantFold] Remove unnecessary BitCastConstantVector() (NFCI)
ConstantFoldCastInstruction() already has generic code to perform lane-wise casts for vectors. There is no need to repeate it specifically for bitcasts. However, we do need to keep the special case for vectors of -1, which is not handled elsewhere.
parent
4be8a7bd
Please register or sign in to comment