HomePhabricator

[X86][AVX] Combine vpermi(bitcast(x)) -> bitcast(vpermi(x))

Authored by RKSimon on Jul 3 2019, 7:34 AM.

Description

[X86][AVX] Combine vpermi(bitcast(x)) -> bitcast(vpermi(x))

iff the number of elements doesn't change.

This gets around an issue with combineX86ShuffleChain not being able to hint which domain is preferred for shuffles that can be done with either.

Fixes regression introduced in rL365041

llvm-svn: 365044

Details

Committed
RKSimonJul 3 2019, 7:34 AM
Parents
rGfa4aac7335ac: [SelectionDAG] Propagate alias metadata to target intrinsic nodes
Branches
Unknown
Tags
Unknown