OSDN Git Service

[TargetLowering] Add SimplifyDemandedVectorElts support to EXTEND opcodes
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 4 Dec 2018 10:41:06 +0000 (10:41 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 4 Dec 2018 10:41:06 +0000 (10:41 +0000)
commit8254306a0e6aca84cb004a72799fda95dd88ba5e
tree431d2b6850096db4d10420c4cb12dcff3f1a7c84
parent35e86cfb137fc1933608c4a380ee698883d30651
[TargetLowering] Add SimplifyDemandedVectorElts support to EXTEND opcodes

Add support for ISD::*_EXTEND and ISD::*_EXTEND_VECTOR_INREG opcodes.

The extra broadcast in trunc-subvector.ll will be fixed in an upcoming patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@348246 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/trunc-subvector.ll
test/CodeGen/X86/vector-rotate-128.ll
test/CodeGen/X86/vector-rotate-256.ll
test/CodeGen/X86/vector-rotate-512.ll