]> granicus.if.org Git - llvm/commit
Relax constraints for reduction vectorization
authorSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 11 Mar 2019 21:36:41 +0000 (21:36 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 11 Mar 2019 21:36:41 +0000 (21:36 +0000)
commitceec6f23cb997b3903d250ced18e2f0003809f90
tree073387ce9f4ce8606d4f0bf8e7f184da6aaf0df7
parent7cb38d512dc742d95a0278fbf3e29ecd5d319466
Relax constraints for reduction vectorization

Summary:
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@355868 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/reduction-fastmath.ll [new file with mode: 0644]