D52935 introduced the ability for SimplifyDemandedBits to call SimplifyDemandedVectorElts through BITCASTs if the demanded bit mask entirely covered the sub element.
This patch relaxes this to demanding an element if we need any bit from it.
Paths
| Differential D54761
[SelectionDAG] Improve SimplifyDemandedBits to SimplifyDemandedVectorElts simplification ClosedPublic Authored by RKSimon on Nov 20 2018, 9:38 AM.
Details Summary D52935 introduced the ability for SimplifyDemandedBits to call SimplifyDemandedVectorElts through BITCASTs if the demanded bit mask entirely covered the sub element. This patch relaxes this to demanding an element if we need any bit from it.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 26 2018, 12:00 PM Closed by commit rL348073: [SelectionDAG] Improve SimplifyDemandedBits to SimplifyDemandedVectorElts… (authored by RKSimon). · Explain WhyDec 1 2018, 4:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 176249 llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/trunk/test/CodeGen/AMDGPU/idot8.ll
llvm/trunk/test/CodeGen/AMDGPU/store-weird-sizes.ll
llvm/trunk/test/CodeGen/X86/combine-sdiv.ll
llvm/trunk/test/CodeGen/X86/pr35918.ll
llvm/trunk/test/CodeGen/X86/rotate-extract-vector.ll
llvm/trunk/test/CodeGen/X86/vector-rotate-128.ll
llvm/trunk/test/CodeGen/X86/vector-shift-ashr-sub128.ll
llvm/trunk/test/CodeGen/X86/vector-shift-shl-128.ll
llvm/trunk/test/CodeGen/X86/vector-shift-shl-sub128-widen.ll
llvm/trunk/test/CodeGen/X86/vector-shift-shl-sub128.ll
|