summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-04-09 05:59:53 +0000
committerCraig Topper <craig.topper@gmail.com>2012-04-09 05:59:53 +0000
commite5893f64e8e3819804731f92b467349f4813932c (patch)
tree6c65d9615cc71dbb06535f649f9bee9d1ac53e6f /llvm/lib/CodeGen/SelectionDAG
parente3ad4834ae9d911e4a75a90517d0dd7da3f74758 (diff)
downloadbcm5719-llvm-e5893f64e8e3819804731f92b467349f4813932c.tar.gz
bcm5719-llvm-e5893f64e8e3819804731f92b467349f4813932c.zip
Remove unnecessary 'else' on an 'if' that always returns
llvm-svn: 154308
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index a910e34579e..3a06868de53 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud