Skip to content
Commit 1584e55a authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[X86] canonicalizeShuffleWithBinOps - handle general unaryshuffle(binop(x,c))...

[X86] canonicalizeShuffleWithBinOps - handle general unaryshuffle(binop(x,c)) patterns not just xor(x,-1)

Generalize the shuffle(not(x)) -> not(shuffle(x)) fold to handle any binop with 0/-1.

Hopefully we can further generalize to help push target unary/binary shuffles through binops similar to what we do in DAGCombiner::visitVECTOR_SHUFFLE
parent c907681b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment