mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Delete unnecessary elses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c46e8573e
commit
f52038a204
@ -31,9 +31,9 @@ SelectionDAG::allnodes_iterator ISelPosition;
|
||||
static bool IsChainCompatible(SDNode *Chain, SDNode *Op) {
|
||||
if (Chain->getOpcode() == ISD::EntryToken)
|
||||
return true;
|
||||
else if (Chain->getOpcode() == ISD::TokenFactor)
|
||||
if (Chain->getOpcode() == ISD::TokenFactor)
|
||||
return false;
|
||||
else if (Chain->getNumOperands() > 0) {
|
||||
if (Chain->getNumOperands() > 0) {
|
||||
SDValue C0 = Chain->getOperand(0);
|
||||
if (C0.getValueType() == MVT::Other)
|
||||
return C0.getNode() != Op && IsChainCompatible(C0.getNode(), Op);
|
||||
|
Loading…
Reference in New Issue
Block a user