forked from OSchip/llvm-project
[X86ISelLowering] Merge two conditions inside a single if.
llvm-svn: 261370
This commit is contained in:
parent
a0f7090563
commit
4cfe2a9e38
|
@ -2340,9 +2340,7 @@ X86TargetLowering::LowerReturn(SDValue Chain,
|
|||
}
|
||||
|
||||
bool X86TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const {
|
||||
if (N->getNumValues() != 1)
|
||||
return false;
|
||||
if (!N->hasNUsesOfValue(1, 0))
|
||||
if (N->getNumValues() != 1 || !N->hasNUsesOfValue(1, 0))
|
||||
return false;
|
||||
|
||||
SDValue TCChain = Chain;
|
||||
|
|
Loading…
Reference in New Issue