1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[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 8cdb9f2953
commit 2cdf3c2ffb

View File

@ -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;