[PATCH] D98963: [LoopVectorize] Change the identity element for FAdd where nsz is false

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 10:09:23 PDT 2021


kmclaughlin created this revision.
kmclaughlin added reviewers: dmgreen, spatel, sdesmalen, david-arm.
Herald added a subscriber: hiraditya.
kmclaughlin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Passes the FMF associated with a reduction to getRecurrenceIdentity to check the no-signed-zeros
flag for FAdds. If nsz is false, we should be returning a neutral value of -0.0.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98963

Files:
  llvm/include/llvm/Analysis/IVDescriptors.h
  llvm/lib/Analysis/IVDescriptors.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/X86/reduction-fastmath.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98963.331914.patch
Type: text/x-patch
Size: 8541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210319/339451a3/attachment.bin>


More information about the llvm-commits mailing list