summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-15 11:36:36 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-15 11:36:36 +0000
commit1e1fd9c76119680e4c851baa77d7bf6a1762b8cb (patch)
treedb199d9e739d0893e22ab65569c7d5b36740b642 /llvm/lib/CodeGen
parent7970eccc89e5cc9b53f6d53c151e30cfe73a0a63 (diff)
downloadbcm5719-llvm-1e1fd9c76119680e4c851baa77d7bf6a1762b8cb.tar.gz
bcm5719-llvm-1e1fd9c76119680e4c851baa77d7bf6a1762b8cb.zip
[TargetLowering] Add ISD::OR + ISD::XOR handling to SimplifyDemandedVectorElts
Differential Revision: https://reviews.llvm.org/D55600 llvm-svn: 349264
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index c2f1e37c36f..310eee2fb03 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1769,6 +1769,8 @@ bool TargetLowering::SimplifyDemandedVectorElts(
KnownUndef = SrcUndef.zextOrTrunc(NumElts);
break;
}
+ case ISD::OR:
+ case ISD::XOR:
case ISD::ADD:
case ISD::SUB:
case ISD::FADD:
OpenPOWER on IntegriCloud