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 | 0565b5a2791aa2e5a745d8ab95385cd5d7862424 (patch) | |
tree | 784cbe8abab234c5d415a406f9ea7097f9644545 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 70601ba6f9a84b647c491e154b61fa48837d7d4b (diff) | |
download | bcm5719-llvm-0565b5a2791aa2e5a745d8ab95385cd5d7862424.tar.gz bcm5719-llvm-0565b5a2791aa2e5a745d8ab95385cd5d7862424.zip |
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.
llvm-svn: 168142
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 12e4db6b38f..31e0e864839 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/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; |