[X86ISelLowering] Merge two conditions inside a single if.

llvm-svn: 261370
This commit is contained in:
Davide Italiano 2016-02-19 22:01:07 +00:00
parent a0f7090563
commit 4cfe2a9e38
1 changed files with 1 additions and 3 deletions

View File

@ -2340,9 +2340,7 @@ X86TargetLowering::LowerReturn(SDValue Chain,
} }
bool X86TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const { bool X86TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const {
if (N->getNumValues() != 1) if (N->getNumValues() != 1 || !N->hasNUsesOfValue(1, 0))
return false;
if (!N->hasNUsesOfValue(1, 0))
return false; return false;
SDValue TCChain = Chain; SDValue TCChain = Chain;