This adds a fold which fixes a couple of regressions found in D138872 (one for MVE, another for AArch64 NEON, both from intrinsic code). The backend could be caught not knowing how to simplify either splat(bitcast(buildvector(x,..))) or splat(bitcast(scalar_to_vector(x))). This only handles lane 0 splats, which are only valid under LE, and needs to be a little careful with the types it creates for the new buildvector.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo