diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2019-03-11 22:37:31 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2019-03-11 22:37:31 +0000 |
commit | 2136a5bc49bfd241fcf95d96bd11f9436f001cd4 (patch) | |
tree | afbcd6350b89ebc8952409d6a12d3fc5efb37a2f /llvm/lib/CodeGen/ExpandReductions.cpp | |
parent | a958d40e78367642257e6f624769b5fa9e0eab11 (diff) | |
download | llvm-2136a5bc49bfd241fcf95d96bd11f9436f001cd4.zip llvm-2136a5bc49bfd241fcf95d96bd11f9436f001cd4.tar.gz llvm-2136a5bc49bfd241fcf95d96bd11f9436f001cd4.tar.bz2 |
Revert "Relax constraints for reduction vectorization"
This reverts commit r355868. Breaks hexagon.
llvm-svn: 355873
Diffstat (limited to 'llvm/lib/CodeGen/ExpandReductions.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ExpandReductions.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ExpandReductions.cpp b/llvm/lib/CodeGen/ExpandReductions.cpp index 34858883..f44d891 100644 --- a/llvm/lib/CodeGen/ExpandReductions.cpp +++ b/llvm/lib/CodeGen/ExpandReductions.cpp @@ -118,11 +118,9 @@ bool expandReductions(Function &F, const TargetTransformInfo *TTI) { } if (!TTI->shouldExpandReduction(II)) continue; - FastMathFlags FMF = - isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; Value *Rdx = IsOrdered ? getOrderedReduction(Builder, Acc, Vec, getOpcode(ID), MRK) - : getShuffleReduction(Builder, Vec, getOpcode(ID), MRK, FMF); + : getShuffleReduction(Builder, Vec, getOpcode(ID), MRK); II->replaceAllUsesWith(Rdx); II->eraseFromParent(); Changed = true; |