OSDN Git Service

[SelectionDAG] Improve SimplifyDemandedBits to SimplifyDemandedVectorElts simplification
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Dec 2018 12:08:55 +0000 (12:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 1 Dec 2018 12:08:55 +0000 (12:08 +0000)
commitb0510431f202d398e20b45e3635af2970c22da01
tree05f55443b7f97cb08aec16bc7f6d35c0bb368975
parent9ecb90821effbbfc6308c532990deb95edfe640e
[SelectionDAG] Improve SimplifyDemandedBits to SimplifyDemandedVectorElts simplification

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.

Differential Revision: https://reviews.llvm.org/D54761

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/AMDGPU/idot8.ll
test/CodeGen/AMDGPU/store-weird-sizes.ll
test/CodeGen/X86/combine-sdiv.ll
test/CodeGen/X86/pr35918.ll
test/CodeGen/X86/rotate-extract-vector.ll
test/CodeGen/X86/vector-rotate-128.ll
test/CodeGen/X86/vector-shift-ashr-sub128.ll
test/CodeGen/X86/vector-shift-shl-128.ll
test/CodeGen/X86/vector-shift-shl-sub128-widen.ll
test/CodeGen/X86/vector-shift-shl-sub128.ll