aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringMapTest.cpp
diff options
context:
space:
mode:
authorSam Elliott <selliott@lowrisc.org>2020-05-02 15:00:38 +0100
committerSam Elliott <selliott@lowrisc.org>2020-05-02 15:01:04 +0100
commita4a9a1f671ed79b648b41fca1a9c01b14cc1cbfc (patch)
tree412601b6867922cfaec531f0a8b12038351598b5 /llvm/unittests/ADT/StringMapTest.cpp
parent910ca0e435913be2c4cd8e7d9d12a0f4c759a215 (diff)
downloadllvm-a4a9a1f671ed79b648b41fca1a9c01b14cc1cbfc.zip
llvm-a4a9a1f671ed79b648b41fca1a9c01b14cc1cbfc.tar.gz
llvm-a4a9a1f671ed79b648b41fca1a9c01b14cc1cbfc.tar.bz2
[RISCV] Add patterns for checking isnan
Summary: This patch addresses some weird assembly sequences we were seeing during comparing floats. In particular, comparing a float to itself tells you whether it is NaN or not, which we were doing correctly, but with an extra unneeded `and` instruction. This patch specialises the existing patterns to remove the `and` instructions when both their operands are the same. Reviewed By: luismarques, asb Differential Revision: https://reviews.llvm.org/D78908
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
0 files changed, 0 insertions, 0 deletions