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),
|
||||
N0.getOperand(1),
|
||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
||||
|
||||
// If the desired elements are smaller or larger than the source
|
||||
// elements we can use a matching integer vector type and then
|
||||
// truncate/any extend
|
||||
else {
|
||||
EVT MatchingVectorType = N00VT.changeVectorElementTypeToInteger();
|
||||
SDValue VsetCC =
|
||||
DAG.getSetCC(SDLoc(N), MatchingVectorType, N0.getOperand(0),
|
||||
N0.getOperand(1),
|
||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
||||
return DAG.getAnyExtOrTrunc(VsetCC, SDLoc(N), VT);
|
||||
}
|
||||
EVT MatchingVectorType = N00VT.changeVectorElementTypeToInteger();
|
||||
SDValue VsetCC =
|
||||
DAG.getSetCC(SDLoc(N), MatchingVectorType, N0.getOperand(0),
|
||||
N0.getOperand(1),
|
||||
cast<CondCodeSDNode>(N0.getOperand(2))->get());
|
||||
return DAG.getAnyExtOrTrunc(VsetCC, SDLoc(N), VT);
|
||||
}
|
||||
|
||||
// aext(setcc x,y,cc) -> select_cc x, y, 1, 0, cc
|
||||
|
|
Loading…
Reference in New Issue