Fix an obvious type. Patch by Ivan Krasin.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 4 Aug 2011 18:38:15 +0000 (18:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 4 Aug 2011 18:38:15 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 92451e5198d6cf0dd5846a4f0699bf4e327a211e..792d68c2c83c2d56cd88b6b43c0a270e8fe0e000 100644 (file)
@@ -11686,7 +11686,7 @@ static SDValue PerformSELECTCombine(SDNode *N, SelectionDAG &DAG,
         // Converting this to a max would handle comparisons between positive
         // and negative zero incorrectly.
         if (!UnsafeFPMath &&
-            !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(LHS))
+            !DAG.isKnownNeverZero(LHS) && !DAG.isKnownNeverZero(RHS))
           break;
         Opcode = X86ISD::FMAX;
         break;