[PATCH] D61919: [builtins] Deduplicate __eqsf2 and __gtsf2

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 14:47:04 PDT 2019


phosek created this revision.
phosek added reviewers: echristo, saugustine.
Herald added subscribers: llvm-commits, Sanitizers, javed.absar.
Herald added projects: LLVM, Sanitizers.

The only difference between __eqsf2 and __gtsf2 is whether they return
1 or -1 on NaN. Rather than duplicating all the code, use a macro to
define the function twice and use an argument to decide whether to
negate the return value.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D61919

Files:
  compiler-rt/lib/builtins/arm/comparesf2.S

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61919.199521.patch
Type: text/x-patch
Size: 4213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190514/9d228776/attachment.bin>


More information about the llvm-commits mailing list