HomePhabricator

[InstCombine] fold insertelement into splat of same scalar

Description

[InstCombine] fold insertelement into splat of same scalar

Forming the canonical splat shuffle improves analysis and
may allow follow-on transforms (although some possibilities
are missing as shown in the test diffs).

The backend generically turns these patterns into build_vector,
so there should be no codegen regressions. All targets are
expected to be able to lower splats efficiently.

Details

Committed
spatelJul 8 2019, 12:48 PM
Parents
rL365378: AMDGPU: Fix unused variable in release build
Branches
Unknown
Tags
Unknown