llvm-6502/test/Transforms/LoopVectorize
Arnold Schwaighofer 08a0e8f8db LoopVectorizer: integer division is not a reduction operation
Don't classify idiv/udiv as a reduction operation. Integer division is lossy.
For example : (1 / 2) * 4 != 4/2.

Example:

int a[] = { 2, 5, 2, 2}
int x = 80;

for()
  x /= a[i];

Scalar:
  x /= 2 // = 40
  x /= 5 // = 8
  x /= 2 // = 4
  x /= 2 // = 2

Vectorized:

 <80, 1> / <2,5> //= <40,0>
 <40, 0> / <2,2> //= <20,0>

 20*0 = 0

radar://13640654

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179381 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-12 15:15:19 +00:00
..
ARM
X86 LoopVectorizer: Pass OperandValueKind information to the cost model 2013-04-04 23:26:27 +00:00
12-12-11-if-conv.ll
2012-10-20-infloop.ll
2012-10-22-isconsec.ll
bzip_reverse_loops.ll
calloc.ll
cast-induction.ll
cpp-new-array.ll
dbg.value.ll LoopVectorizer: Ignore dbg.value instructions 2013-03-09 15:56:34 +00:00
flags.ll
float-reduction.ll
gcc-examples.ll
global_alias.ll Test case hygiene. 2013-03-09 18:25:40 +00:00
i8-induction.ll
if-conv-crash.ll
if-conversion-reduction.ll
if-conversion.ll
increment.ll
induction_plus.ll
intrinsic.ll LoopVectorize: Vectorize math builtin calls. 2013-02-27 15:24:19 +00:00
lcssa-crash.ll
lit.local.cfg
no_idiv_reduction.ll LoopVectorizer: integer division is not a reduction operation 2013-04-12 15:15:19 +00:00
no_int_induction.ll
nofloat.ll
non-const-n.ll
nsw-crash.ll
phi-hang.ll LoopVectorize: Don't hang forever if a PHI only has skipped PHI uses. 2013-03-01 19:07:31 +00:00
ptr_loops.ll
read-only.ll
reduction.ll
runtime-check.ll
same-base-access.ll
scalar-select.ll
simple-unroll.ll
small-loop.ll
start-non-zero.ll
struct_access.ll
vectorize-once.ll PR14448 - prevent the loop vectorizer from vectorizing the same loop twice. 2013-03-02 01:33:49 +00:00
write-only.ll