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
This commit is contained in:
Nadav Rotem 2012-11-16 06:51:17 +00:00
parent d577552c66
commit 77d6ae1b01

View File

@ -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;