[X86][SSE] Add shufps+shufps test for fold through commutation
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Jan 2020 11:16:16 +0000 (11:16 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Jan 2020 11:16:44 +0000 (11:16 +0000)
commite37cdbeeabfb17821b9ff5d2f42e9f440882dab8
treed1e26af6af8df426979be6cb7995234744b1bcb8
parentd4b092b34125d6c571d43a185a1c774244b76957
[X86][SSE] Add shufps+shufps test for fold through commutation

As mentioned on D73023, lowerShuffleWithSHUFPS should be able to commute the shufps inputs to fold the second arg as it will then permute the shufps result anyway.
llvm/test/CodeGen/X86/vector-shuffle-128-v4.ll