llvm-project
bcc21055 - [DAGCombiner] Fix splat(bitcast(build_vector)) crash for expanded integers (#245005)

Commit
10 hours ago
[DAGCombiner] Fix splat(bitcast(build_vector)) crash for expanded integers (#245005) When combining `splat(bitcast(build_vector))` into `build_vector`, `getTypeToTransformTo` may return an expanded type for `SVT`. Using this type as the `build_vector` operand type crashes, as `build_vector` requires the operand bit width to be no smaller than the result scalar type. Fix by using `SVT` as the operand type. Fixes: https://github.com/llvm/llvm-project/issues/244519 Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading