[X86] Handle inverted inputs when matching VPTERNLOG from 2 binary ops.
authorCraig Topper <craig.topper@sifive.com>
Tue, 7 Sep 2021 00:44:51 +0000 (17:44 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 7 Sep 2021 00:44:52 +0000 (17:44 -0700)
commitda3ef8b7561249fa167e8f0150f56275541bdfdf
tree27b55fca3c1029cb6adf24fb45f747c37e8f90e8
parent76529b446859af4623aa739bc6cea5cc7829dee9
[X86] Handle inverted inputs when matching VPTERNLOG from 2 binary ops.

This is a more general version of D109273. Though it doesn't
peek through bitcasts or rearange broadcasts.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D109295
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/avx512vl-logic.ll