[X86][AVX] Convert X86ISD::VBROADCAST demanded elts combine to use SimplifyDemandedVe...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 20 Jul 2018 13:26:51 +0000 (13:26 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 20 Jul 2018 13:26:51 +0000 (13:26 +0000)
commit6fb8b68b2d1cc953f8521d93a5a6faee39662697
tree7e65cceaf224188a27c2ef8a76f02d05749555c8
parentcbf5af12b0417fdf9d701db293447205b7e0f1c6
[X86][AVX] Convert X86ISD::VBROADCAST demanded elts combine to use SimplifyDemandedVectorElts

This is an early step towards using SimplifyDemandedVectorElts for target shuffle combining - this merely moves the existing X86ISD::VBROADCAST simplification code to use the SimplifyDemandedVectorElts mechanism.

Adds X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode to handle X86ISD::VBROADCAST - in time we can support all target shuffles (and other ops) here.

llvm-svn: 337547
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h