[TargetLowering] Add ISD::EXTRACT_VECTOR_ELT support to SimplifyDemandedBits
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 11 Dec 2018 11:08:40 +0000 (11:08 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 11 Dec 2018 11:08:40 +0000 (11:08 +0000)
commitf6371f5f23ab2f4cddfe7e30185a7bbe2265e0b2
tree7588903fe3b4cbd2cfbdba21ee91c0c3af6ac0c9
parentec338c9dd3b64b65a03628d1f262dfdcb472ebf5
[TargetLowering] Add ISD::EXTRACT_VECTOR_ELT support to SimplifyDemandedBits

Let SimplifyDemandedBits attempt to simplify all elements of a vector extraction.

Part of PR39689.

llvm-svn: 348839
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/known-signbits-vector.ll
llvm/test/CodeGen/X86/pr35918.ll