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:
parent
8cdb9f2953
commit
2cdf3c2ffb
@ -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…
x
Reference in New Issue
Block a user