Skip to content
Permalink
Browse files

[X86] Add broadcast load unfolding support for vpcmpeq/vpcmpgt/vpcmp/…

…vpcmpu.

llvm-svn: 371368
  • Loading branch information...
topperc committed Sep 9, 2019
1 parent 667f039 commit a88f58ff0e8bcd8407c073e32e2ce4b0878b02f4
Showing with 124 additions and 80 deletions.
  1. +24 −0 llvm/lib/Target/X86/X86InstrFoldTables.cpp
  2. +100 −80 llvm/test/CodeGen/X86/avx512-broadcast-unfold.ll
@@ -5306,6 +5306,30 @@ static const X86MemoryFoldTableEntry BroadcastFoldTable2[] = {
{ X86::VPANDQZ128rr, X86::VPANDQZ128rmb, TB_BCAST_Q },
{ X86::VPANDQZ256rr, X86::VPANDQZ256rmb, TB_BCAST_Q },
{ X86::VPANDQZrr, X86::VPANDQZrmb, TB_BCAST_Q },
{ X86::VPCMPDZ128rri, X86::VPCMPDZ128rmib, TB_BCAST_D },
{ X86::VPCMPDZ256rri, X86::VPCMPDZ256rmib, TB_BCAST_D },
{ X86::VPCMPDZrri, X86::VPCMPDZrmib, TB_BCAST_D },
{ X86::VPCMPEQDZ128rr, X86::VPCMPEQDZ128rmb, TB_BCAST_D },
{ X86::VPCMPEQDZ256rr, X86::VPCMPEQDZ256rmb, TB_BCAST_D },
{ X86::VPCMPEQDZrr, X86::VPCMPEQDZrmb, TB_BCAST_D },
{ X86::VPCMPEQQZ128rr, X86::VPCMPEQQZ128rmb, TB_BCAST_Q },
{ X86::VPCMPEQQZ256rr, X86::VPCMPEQQZ256rmb, TB_BCAST_Q },
{ X86::VPCMPEQQZrr, X86::VPCMPEQQZrmb, TB_BCAST_Q },
{ X86::VPCMPGTDZ128rr, X86::VPCMPGTDZ128rmb, TB_BCAST_D },
{ X86::VPCMPGTDZ256rr, X86::VPCMPGTDZ256rmb, TB_BCAST_D },
{ X86::VPCMPGTDZrr, X86::VPCMPGTDZrmb, TB_BCAST_D },
{ X86::VPCMPGTQZ128rr, X86::VPCMPGTQZ128rmb, TB_BCAST_Q },
{ X86::VPCMPGTQZ256rr, X86::VPCMPGTQZ256rmb, TB_BCAST_Q },
{ X86::VPCMPGTQZrr, X86::VPCMPGTQZrmb, TB_BCAST_Q },
{ X86::VPCMPQZ128rri, X86::VPCMPQZ128rmib, TB_BCAST_Q },
{ X86::VPCMPQZ256rri, X86::VPCMPQZ256rmib, TB_BCAST_Q },
{ X86::VPCMPQZrri, X86::VPCMPQZrmib, TB_BCAST_Q },
{ X86::VPCMPUDZ128rri, X86::VPCMPUDZ128rmib, TB_BCAST_D },
{ X86::VPCMPUDZ256rri, X86::VPCMPUDZ256rmib, TB_BCAST_D },
{ X86::VPCMPUDZrri, X86::VPCMPUDZrmib, TB_BCAST_D },
{ X86::VPCMPUQZ128rri, X86::VPCMPUQZ128rmib, TB_BCAST_Q },
{ X86::VPCMPUQZ256rri, X86::VPCMPUQZ256rmib, TB_BCAST_Q },
{ X86::VPCMPUQZrri, X86::VPCMPUQZrmib, TB_BCAST_Q },
{ X86::VPMAXSDZ128rr, X86::VPMAXSDZ128rmb, TB_BCAST_D },
{ X86::VPMAXSDZ256rr, X86::VPMAXSDZ256rmb, TB_BCAST_D },
{ X86::VPMAXSDZrr, X86::VPMAXSDZrmb, TB_BCAST_D },

0 comments on commit a88f58f

Please sign in to comment.
You can’t perform that action at this time.