From 4cfe2a9e38a89da917251dc2f94d7511bf6a4a97 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 19 Feb 2016 22:01:07 +0000 Subject: [PATCH] [X86ISelLowering] Merge two conditions inside a single if. llvm-svn: 261370 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index de8ff0cb0cfc..ddbbf0297ace 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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;