1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

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

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;