mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d577552c66
commit
77d6ae1b01
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user