diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-03-19 14:24:51 +0530 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2024-03-19 14:52:45 +0530 |
commit | 1a6953a75d3120a4f9196911e6a6b79fcc315553 (patch) | |
tree | f503fc41d315b2faba59ee624c31eef816d3ea49 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | a747e86caacf0ba3d5272474da8c10eb0b67dbc2 (diff) | |
download | llvm-1a6953a75d3120a4f9196911e6a6b79fcc315553.zip llvm-1a6953a75d3120a4f9196911e6a6b79fcc315553.tar.gz llvm-1a6953a75d3120a4f9196911e6a6b79fcc315553.tar.bz2 |
ValueTracking: Fix bug with fcmp false to nan constant
If we had a comparison to a literal nan with a false predicate,
we were incorrectly treating it as an unordered compare. This was
correct for fcmp true, but not fcmp false. I noticed this in the
review for e44d3b3e503fa12fdaead2936b28844aa36237c1 but misdiagnosed
the reason. Also change the test for the fcmp true case to be more
useful, but it wasn't wrong previously.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions