summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-24 19:28:34 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-24 19:28:34 +0000
commitc0dbdb86c35f2d7d57e88090799759a9ec7a2157 (patch)
tree3f42f5060529e57a1281cd4739723e9926aba9ea /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parenta6f81007886ce412021f229b07f113512b4cd57b (diff)
downloadbcm5719-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.cpp5
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,
OpenPOWER on IntegriCloud