summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2015-04-06 17:15:41 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2015-04-06 17:15:41 +0000
commit07e063e44c2348d23b2d7f249e7da3be56c20760 (patch)
treebb86f2fca4119c5d96ef04ebb6bbb2f41296a723 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentb23c24c2a84bbc367240fc1eaf17863320793200 (diff)
downloadbcm5719-llvm-07e063e44c2348d23b2d7f249e7da3be56c20760.tar.gz
bcm5719-llvm-07e063e44c2348d23b2d7f249e7da3be56c20760.zip
[DAGCombiner] Add support for FCEIL, FFLOOR and FTRUNC vector constant folding
Differential Revision: http://reviews.llvm.org/D8715 llvm-svn: 234179
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 644411706f4..fdfdd15ad67 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2853,6 +2853,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL,
break;
case ISD::FNEG:
case ISD::FABS:
+ case ISD::FCEIL:
+ case ISD::FTRUNC:
+ case ISD::FFLOOR:
case ISD::FP_EXTEND:
case ISD::TRUNCATE:
case ISD::UINT_TO_FP:
@@ -2870,6 +2873,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL,
}
if (Ops.size() == VT.getVectorNumElements())
return getNode(ISD::BUILD_VECTOR, DL, VT, Ops);
+ break;
}
}
}
OpenPOWER on IntegriCloud