[PATCH] D87586: [X86] Improve nnan fmin/fmax vector reduction

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 12:19:07 PDT 2020


nikic updated this revision to Diff 291645.
nikic edited the summary of this revision.
nikic added a comment.

Now that D87571 <https://reviews.llvm.org/D87571> also handles the FLT_MAX case, adjust this patch to use either NaN, Inf or FLT_MAX as the neutral element for fminnum (and same negative for fmaxnum). This means we never have to drop FMF.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87586/new/

https://reviews.llvm.org/D87586

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/test/CodeGen/AArch64/vecreduce-fmax-legalization.ll
  llvm/test/CodeGen/AArch64/vecreduce-fmin-legalization.ll
  llvm/test/CodeGen/X86/vector-reduce-fmax-nnan.ll
  llvm/test/CodeGen/X86/vector-reduce-fmin-nnan.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87586.291645.patch
Type: text/x-patch
Size: 13862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/2a8814a5/attachment.bin>


More information about the llvm-commits mailing list