diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-09 05:59:53 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-09 05:59:53 +0000 |
commit | b7135e5838f1d08378952de125af9006449fa25c (patch) | |
tree | 4411a677ffb4a1f3ff30d6bb226c4d30b7b4d4cb /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 4b206bdfd0839fe61fda3e0b6955a80646a93977 (diff) |
Remove unnecessary 'else' on an 'if' that always returns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index a910e34579..3a06868de5 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7900,7 +7900,8 @@ SDValue DAGCombiner::XformToShuffleWithZero(SDNode *N) { SDValue Elt = RHS.getOperand(i); if (!isa<ConstantSDNode>(Elt)) return SDValue(); - else if (cast<ConstantSDNode>(Elt)->isAllOnesValue()) + + if (cast<ConstantSDNode>(Elt)->isAllOnesValue()) Indices.push_back(i); else if (cast<ConstantSDNode>(Elt)->isNullValue()) Indices.push_back(NumElts); |