diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-24 19:28:34 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-24 19:28:34 +0000 |
commit | c0dbdb86c35f2d7d57e88090799759a9ec7a2157 (patch) | |
tree | 3f42f5060529e57a1281cd4739723e9926aba9ea /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | a6f81007886ce412021f229b07f113512b4cd57b (diff) | |
download | bcm5719-llvm-c0dbdb86c35f2d7d57e88090799759a9ec7a2157.tar.gz bcm5719-llvm-c0dbdb86c35f2d7d57e88090799759a9ec7a2157.zip |
[TargetLowering] SimplifyDemandedVectorElts - pass demanded elts through TRUNCATE ops
llvm-svn: 326043
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index d1e524531cb..36cb2cd963a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1536,6 +1536,11 @@ bool TargetLowering::SimplifyDemandedVectorElts( } break; } + case ISD::TRUNCATE: + if (SimplifyDemandedVectorElts(Op.getOperand(0), DemandedElts, KnownUndef, + KnownZero, TLO, Depth + 1)) + return true; + break; default: { if (Op.getOpcode() >= ISD::BUILTIN_OP_END) if (SimplifyDemandedVectorEltsForTargetNode(Op, DemandedElts, KnownUndef, |