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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 00:57:02 PDT 2020


nikic created this revision.
nikic added reviewers: spatel, RKSimon, craig.topper.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
nikic requested review of this revision.

Use +/-Inf as neutral element for nnan fmin/fmax reductions. Using NaN requires dropping the nnan flag, which is important to get a good lowering on X86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87586

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/test/CodeGen/AArch64/vecreduce-fmax-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.291446.patch
Type: text/x-patch
Size: 13070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200913/23e3675a/attachment.bin>


More information about the llvm-commits mailing list