[PATCH] D40452: [SelectionDAG] Remove some dead code from vector scalaring
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 25 09:59:23 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL318982: [SelectionDAG] Remove some dead code from vector scalaring (authored by ctopper).
Changed prior to commit:
https://reviews.llvm.org/D40452?vs=124247&id=124263#toc
Repository:
rL LLVM
https://reviews.llvm.org/D40452
Files:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Index: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -380,21 +380,6 @@
N->getOperand(4));
}
-SDValue DAGTypeLegalizer::ScalarizeVecRes_SETCC(SDNode *N) {
- assert(N->getValueType(0).isVector() ==
- N->getOperand(0).getValueType().isVector() &&
- "Scalar/Vector type mismatch");
-
- if (N->getValueType(0).isVector()) return ScalarizeVecRes_VSETCC(N);
-
- SDValue LHS = GetScalarizedVector(N->getOperand(0));
- SDValue RHS = GetScalarizedVector(N->getOperand(1));
- SDLoc DL(N);
-
- // Turn it into a scalar SETCC.
- return DAG.getNode(ISD::SETCC, DL, MVT::i1, LHS, RHS, N->getOperand(2));
-}
-
SDValue DAGTypeLegalizer::ScalarizeVecRes_UNDEF(SDNode *N) {
return DAG.getUNDEF(N->getValueType(0).getVectorElementType());
}
@@ -408,7 +393,7 @@
return GetScalarizedVector(N->getOperand(Op));
}
-SDValue DAGTypeLegalizer::ScalarizeVecRes_VSETCC(SDNode *N) {
+SDValue DAGTypeLegalizer::ScalarizeVecRes_SETCC(SDNode *N) {
assert(N->getValueType(0).isVector() &&
N->getOperand(0).getValueType().isVector() &&
"Operand types must be vectors");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40452.124263.patch
Type: text/x-patch
Size: 1330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171125/17a0578b/attachment.bin>
More information about the llvm-commits
mailing list