[all-commits] [llvm/llvm-project] 5fe159: [LoopVectorizer] Require no-signed-zeros-fp-math=t...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Mon Feb 15 05:48:14 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fe15934388f9ce7b3c564eb48d2fe8bafea14cf
      https://github.com/llvm/llvm-project/commit/5fe15934388f9ce7b3c564eb48d2fe8bafea14cf
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/IVDescriptors.h
    M llvm/lib/Analysis/IVDescriptors.cpp
    M llvm/test/Transforms/LoopVectorize/X86/reduction-fastmath.ll
    M llvm/test/Transforms/LoopVectorize/float-minmax-instruction-flag.ll
    M llvm/test/Transforms/LoopVectorize/minmax_reduction.ll

  Log Message:
  -----------
  [LoopVectorizer] Require no-signed-zeros-fp-math=true for fmin/fmax

Currently, setting the `no-nans-fp-math` attribute to true will allow
loops with fmin/fmax to vectorize, though we should be requiring that
`no-signed-zeros-fp-math` is also set.

This patch adds the check for no-signed-zeros at the function level and includes
tests to make sure we don't vectorize functions with only one of the attributes
associated.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D96604




More information about the All-commits mailing list