mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
[ValueTracking] Tweak a comment slightly
Hal asked for this change in D11146, but I missed it when I committed originally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e21d8ad575
commit
078921e1cc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user