diff options
| author | Nadav Rotem <nrotem@apple.com> | 2012-11-16 06:51:17 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2012-11-16 06:51:17 +0000 |
| commit | 77d6ae1b01f86cc82593c8f67118b7c2d6fd17c2 (patch) | |
| tree | 908e3ee9738fc3d386c14d12b3b78263dd7d8ab9 /lib/Transforms/Vectorize/LoopVectorize.cpp | |
| parent | d577552c668b744a995c41ff0b73c68eb30d7b93 (diff) | |
| download | external_llvm-77d6ae1b01f86cc82593c8f67118b7c2d6fd17c2.zip external_llvm-77d6ae1b01f86cc82593c8f67118b7c2d6fd17c2.tar.gz external_llvm-77d6ae1b01f86cc82593c8f67118b7c2d6fd17c2.tar.bz2 | |
LoopVectorize: Division reductions generate incorrect code. Remove the part of the code that deals with divs.
Thanks to Paul Redmond for catching this while reviewing the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
| -rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 12e4db6..31e0e86 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1671,8 +1671,6 @@ LoopVectorizationLegality::isReductionInstr(Instruction *I, case Instruction::Sub: return Kind == IntegerAdd; case Instruction::Mul: - case Instruction::UDiv: - case Instruction::SDiv: return Kind == IntegerMult; case Instruction::And: return Kind == IntegerAnd; |
