mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 14:16:12 +00:00
[DAGCombiner] Remove else after return. NFCI.
llvm-svn: 299022
This commit is contained in:
parent
272a3a6112
commit
7e02f90ef5
@ -4665,10 +4665,9 @@ 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;
|
||||
return None;
|
||||
}
|
||||
case ISD::SHL: {
|
||||
auto ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(1));
|
||||
@ -4698,8 +4697,7 @@ 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);
|
||||
return calculateByteProvider(NarrowOp, Index, Depth + 1);
|
||||
}
|
||||
case ISD::BSWAP:
|
||||
return calculateByteProvider(Op->getOperand(0), ByteWidth - Index - 1,
|
||||
@ -4718,8 +4716,7 @@ const Optional<ByteProvider> calculateByteProvider(SDValue Op, unsigned Index,
|
||||
return L->getExtensionType() == ISD::ZEXTLOAD
|
||||
? Optional<ByteProvider>(ByteProvider::getConstantZero())
|
||||
: None;
|
||||
else
|
||||
return ByteProvider::getMemory(L, Index);
|
||||
return ByteProvider::getMemory(L, Index);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user