mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-20 20:38:48 +00:00
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
This commit is contained in:
parent
4b206bdfd0
commit
b7135e5838
@ -7900,7 +7900,8 @@ SDValue DAGCombiner::XformToShuffleWithZero(SDNode *N) {
|
|||||||
SDValue Elt = RHS.getOperand(i);
|
SDValue Elt = RHS.getOperand(i);
|
||||||
if (!isa<ConstantSDNode>(Elt))
|
if (!isa<ConstantSDNode>(Elt))
|
||||||
return SDValue();
|
return SDValue();
|
||||||
else if (cast<ConstantSDNode>(Elt)->isAllOnesValue())
|
|
||||||
|
if (cast<ConstantSDNode>(Elt)->isAllOnesValue())
|
||||||
Indices.push_back(i);
|
Indices.push_back(i);
|
||||||
else if (cast<ConstantSDNode>(Elt)->isNullValue())
|
else if (cast<ConstantSDNode>(Elt)->isNullValue())
|
||||||
Indices.push_back(NumElts);
|
Indices.push_back(NumElts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user