[PATCH] D98963: [LoopVectorize] Change the identity element for FAdd

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 11:45:06 PDT 2021


kmclaughlin updated this revision to Diff 333074.
kmclaughlin retitled this revision from "[LoopVectorize] Change the identity element for FAdd where nsz is false" to "[LoopVectorize] Change the identity element for FAdd".
kmclaughlin edited the summary of this revision.
kmclaughlin added a comment.
Herald added subscribers: kerbowa, nhaehnle, jvesely, nemanjai.

Changed `getRecurrenceIdentity` to always generate -0.0 for FAdd.

@david-arm - I also wondered if we should try to use zeroinitializer where possible, though when I changed this to always return -0.0 for FAdd the only tests affected were in `test/Transforms/LoopVectorize`


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

https://reviews.llvm.org/D98963

Files:
  llvm/lib/Analysis/IVDescriptors.cpp
  llvm/test/Transforms/LoopVectorize/AMDGPU/packed-math.ll
  llvm/test/Transforms/LoopVectorize/ARM/mve-reduction-predselect.ll
  llvm/test/Transforms/LoopVectorize/ARM/mve-reduction-types.ll
  llvm/test/Transforms/LoopVectorize/ARM/sphinx.ll
  llvm/test/Transforms/LoopVectorize/PowerPC/widened-massv-call.ll
  llvm/test/Transforms/LoopVectorize/PowerPC/widened-massv-vfabi-attr.ll
  llvm/test/Transforms/LoopVectorize/X86/imprecise-through-phis.ll
  llvm/test/Transforms/LoopVectorize/X86/reduction-crash.ll
  llvm/test/Transforms/LoopVectorize/X86/reduction-fastmath.ll
  llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop-pred.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
  llvm/test/Transforms/LoopVectorize/reduction-predselect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98963.333074.patch
Type: text/x-patch
Size: 20939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/caf7ea51/attachment.bin>


More information about the llvm-commits mailing list