diff options
author | James Molloy <james.molloy@arm.com> | 2015-08-12 15:11:43 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-08-12 15:11:43 +0000 |
commit | 8990b06eaa88fd42f6d6bc7487eae57cef823f79 (patch) | |
tree | 7714e56690e387a8295dc1aad9473ac7ad35ac14 /llvm/lib | |
parent | dc87d1440c58ba14f5c6426abaeb9313802f5e5f (diff) | |
download | bcm5719-llvm-8990b06eaa88fd42f6d6bc7487eae57cef823f79.tar.gz bcm5719-llvm-8990b06eaa88fd42f6d6bc7487eae57cef823f79.zip |
[ValueTracking] Tweak a comment slightly
Hal asked for this change in D11146, but I missed it when I committed originally.
llvm-svn: 244754
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index ace60fa9828..87ab3bb7fda 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -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; |