HomePhabricator

[X86] lowerShuffleAsDecomposedShuffleMerge(): if both inputs are…

Authored by lebedev.ri on Sep 19 2021, 7:32 AM.

Description

[X86] lowerShuffleAsDecomposedShuffleMerge(): if both inputs are broadcastable/identities, canonicalize broadcasts as such

Split off from D108253.
Broadcast is simpler than any other shuffle we might produce
to do what we want to do here, so prefer it.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D108382