]> granicus.if.org Git - llvm/commit
Reland "Relax constraints for reduction vectorization"
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 12 Mar 2019 01:31:44 +0000 (01:31 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 12 Mar 2019 01:31:44 +0000 (01:31 +0000)
commit2d9ad1071146e1106fdaabe611a83aa190effaee
tree26dbba9636917e0fe867657e643cac6dd7d784fd
parente348e5023a25ef496bca1dbbffe55b3deb9e6243
Reland "Relax constraints for reduction vectorization"

Change from original commit: move test (that uses an X86 triple) into the X86
subdirectory.

Original description:
Gating vectorizing reductions on *all* fastmath flags seems unnecessary;
`reassoc` should be sufficient.

Reviewers: tvvikram, mkuper, kristof.beyls, sdesmalen, Ayal

Reviewed By: sdesmalen

Subscribers: dcaballe, huntergr, jmolloy, mcrosier, jlebar, bixia, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355889 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/IVDescriptors.h
include/llvm/IR/Operator.h
include/llvm/Transforms/Utils/LoopUtils.h
lib/Analysis/IVDescriptors.cpp
lib/CodeGen/ExpandReductions.cpp
lib/Transforms/Utils/LoopUtils.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/LoopVectorize/X86/reduction-fastmath.ll [new file with mode: 0644]