]> granicus.if.org Git - llvm/commit
[X86] Make a bunch of merge masked binops commutable for loading folding.
authorCraig Topper <craig.topper@intel.com>
Thu, 6 Jun 2019 21:00:04 +0000 (21:00 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 6 Jun 2019 21:00:04 +0000 (21:00 +0000)
commit1d39dae8198fe0750a22cbdf8429df97942bbe6d
treeee998fb8a64e2f800d0183be28ea26cdf228e29d
parent0460af33310263e367de11fef87aef6119f94571
[X86] Make a bunch of merge masked binops commutable for loading folding.

This primarily affects add/fadd/mul/fmul/and/or/xor/pmuludq/pmuldq/max/min/fmaxc/fminc/pmaddwd/pavg.

We already commuted the unmasked and zero masked versions.

I've added 512-bit stack folding tests for most of the instructions
affected. I've tested needing commuting and not commuting across
unmasked, merged masked, and zero masked. The 128/256 bit instructions
should behave similarly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrAVX512.td
test/CodeGen/X86/stack-folding-fp-avx512.ll
test/CodeGen/X86/stack-folding-int-avx512.ll