[DAGCombiner] Remove else after return. NFCI.

llvm-svn: 299022
This commit is contained in:
Davide Italiano 2017-03-29 19:39:46 +00:00
parent 272a3a6112
commit 7e02f90ef5

View File

@ -4665,9 +4665,8 @@ const Optional<ByteProvider> calculateByteProvider(SDValue Op, unsigned Index,
if (LHS->isConstantZero())
return RHS;
else if (RHS->isConstantZero())
if (RHS->isConstantZero())
return LHS;
else
return None;
}
case ISD::SHL: {
@ -4698,7 +4697,6 @@ const Optional<ByteProvider> calculateByteProvider(SDValue Op, unsigned Index,
return Op.getOpcode() == ISD::ZERO_EXTEND
? Optional<ByteProvider>(ByteProvider::getConstantZero())
: None;
else
return calculateByteProvider(NarrowOp, Index, Depth + 1);
}
case ISD::BSWAP:
@ -4718,7 +4716,6 @@ const Optional<ByteProvider> calculateByteProvider(SDValue Op, unsigned Index,
return L->getExtensionType() == ISD::ZEXTLOAD
? Optional<ByteProvider>(ByteProvider::getConstantZero())
: None;
else
return ByteProvider::getMemory(L, Index);
}
}