[PM/AA] Add missing static dependency edges from DSE and memdep to TLI.
[oota-llvm.git] / lib / Analysis / ValueTracking.cpp
index ace60fa9828a705401893c462fc7d47d146df1da..87ab3bb7fda6b08c29d9e7683f3d86b77a8197f2 100644 (file)
@@ -3545,7 +3545,7 @@ static SelectPatternResult matchSelectPattern(CmpInst::Predicate Pred,
       // returns the RHS.
       Ordered = true;
       if (LHSSafe)
-        // LHS is non-NaN, so RHS is NaN.
+        // LHS is non-NaN, so if RHS is NaN then NaN will be returned.
         NaNBehavior = SPNB_RETURNS_NAN;
       else if (RHSSafe)
         NaNBehavior = SPNB_RETURNS_OTHER;
@@ -3557,7 +3557,7 @@ static SelectPatternResult matchSelectPattern(CmpInst::Predicate Pred,
       // An unordered comparison will return true when given a NaN, so it
       // returns the LHS.
       if (LHSSafe)
-        // LHS is non-NaN.
+        // LHS is non-NaN, so if RHS is NaN then non-NaN will be returned.
         NaNBehavior = SPNB_RETURNS_OTHER;
       else if (RHSSafe)
         NaNBehavior = SPNB_RETURNS_NAN;