summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-21 11:18:54 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-21 11:18:54 +0000
commit54ed653870be1260f285f9b4aa7ea384cd46a629 (patch)
treecb187ef7317bf1ac5d70bacd6fe465a98c835e85 /llvm/lib/CodeGen/SelectionDAG
parent045b8544fd2c4e14f7e72e0df2bc681d823b0838 (diff)
downloadbcm5719-llvm-54ed653870be1260f285f9b4aa7ea384cd46a629.tar.gz
bcm5719-llvm-54ed653870be1260f285f9b4aa7ea384cd46a629.zip
[SelectionDAG] Add scalarization of ABS node (PR41149)
Patch by: @ikulagin (Ivan Kulagin) Differential Revision: https://reviews.llvm.org/D59577 llvm-svn: 356656
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index f14b2e4cfab..ab1b1c5e936 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -68,6 +68,7 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
case ISD::ZERO_EXTEND_VECTOR_INREG:
R = ScalarizeVecRes_VecInregOp(N);
break;
+ case ISD::ABS:
case ISD::ANY_EXTEND:
case ISD::BITREVERSE:
case ISD::BSWAP:
OpenPOWER on IntegriCloud