projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d577552
)
LoopVectorize: Division reductions generate incorrect code. Remove the part of the...
author
Nadav Rotem
<nrotem@apple.com>
Fri, 16 Nov 2012 06:51:17 +0000
(06:51 +0000)
committer
Nadav Rotem
<nrotem@apple.com>
Fri, 16 Nov 2012 06:51:17 +0000
(06:51 +0000)
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
lib/Transforms/Vectorize/LoopVectorize.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Vectorize/LoopVectorize.cpp
b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 12e4db6b38fbd5a0d8ecdbc77f1a13950f0cf19c..31e0e864839d4f44ade81e4aa8b1c8c9b7ea513b 100644
(file)
--- 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;