HomePhabricator

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

Authored by RKSimon on Mar 4 2021, 2:44 AM.

Description

[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

Details

Committed
RKSimonMar 4 2021, 2:44 AM
Parents
rGc907681b077c: [NFC] Fix typos in CallingConvLower.h
Branches
Unknown
Tags
Unknown