forked from OSchip/llvm-project
[DAGCombiner] Remove 'else' after return. NFC
This makes this code consistent with the nearly identical code in visitZERO_EXTEND. llvm-svn: 346090
This commit is contained in:
parent
b5602a6c70
commit
3292ea03d3
|
@ -9087,17 +9087,16 @@ SDValue DAGCombiner::visitANY_EXTEND(SDNode *N) {
|
||||||
return DAG.getSetCC(SDLoc(N), VT, N0.getOperand(0),
|
return DAG.getSetCC(SDLoc(N), VT, N0.getOperand(0),
|
||||||
N0.getOperand(1),
|
N0.getOperand(1),
|
||||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
||||||
|
|
||||||
// If the desired elements are smaller or larger than the source
|
// If the desired elements are smaller or larger than the source
|
||||||
// elements we can use a matching integer vector type and then
|
// elements we can use a matching integer vector type and then
|
||||||
// truncate/any extend
|
// truncate/any extend
|
||||||
else {
|
EVT MatchingVectorType = N00VT.changeVectorElementTypeToInteger();
|
||||||
EVT MatchingVectorType = N00VT.changeVectorElementTypeToInteger();
|
SDValue VsetCC =
|
||||||
SDValue VsetCC =
|
DAG.getSetCC(SDLoc(N), MatchingVectorType, N0.getOperand(0),
|
||||||
DAG.getSetCC(SDLoc(N), MatchingVectorType, N0.getOperand(0),
|
N0.getOperand(1),
|
||||||
N0.getOperand(1),
|
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
||||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
return DAG.getAnyExtOrTrunc(VsetCC, SDLoc(N), VT);
|
||||||
return DAG.getAnyExtOrTrunc(VsetCC, SDLoc(N), VT);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// aext(setcc x,y,cc) -> select_cc x, y, 1, 0, cc
|
// aext(setcc x,y,cc) -> select_cc x, y, 1, 0, cc
|
||||||
|
|
Loading…
Reference in New Issue