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 Adding simple cast cost to ARM 2013-01-29 23:31:38 +00:00
X86 LoopVectorizer: Pass OperandValueKind information to the cost model 2013-04-04 23:26:27 +00:00
12-12-11-if-conv.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
2012-10-20-infloop.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
2012-10-22-isconsec.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
bzip_reverse_loops.ll Add support for reverse pointer induction variables. These are loops that contain pointers that count backwards. 2013-01-23 01:35:00 +00:00
calloc.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
cast-induction.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
cpp-new-array.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
dbg.value.ll LoopVectorizer: Ignore dbg.value instructions 2013-03-09 15:56:34 +00:00
flags.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
float-reduction.ll LoopVectorizer: Add support for floating point reductions 2013-01-07 23:13:00 +00:00
gcc-examples.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
global_alias.ll Test case hygiene. 2013-03-09 18:25:40 +00:00
i8-induction.ll Fix PR14547. Handle induction variables of small sizes smaller than i32 (i8 and i16). 2013-01-13 07:56:29 +00:00
if-conv-crash.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
if-conversion-reduction.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
if-conversion.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
increment.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
induction_plus.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
intrinsic.ll LoopVectorize: Vectorize math builtin calls. 2013-02-27 15:24:19 +00:00
lcssa-crash.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
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 Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
nofloat.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
non-const-n.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
nsw-crash.ll LoopVectorizer: Fix a bug in the vectorization of BinaryOperators. The BinaryOperator can be folded to an Undef, and we don't want to set NSW flags to undef vals. 2013-01-10 17:34:39 +00:00
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 Add support for reverse pointer induction variables. These are loops that contain pointers that count backwards. 2013-01-23 01:35:00 +00:00
read-only.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
reduction.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
runtime-check.ll LoopVectorizer: Emit memory checks into their own basic block. 2013-01-19 13:57:58 +00:00
same-base-access.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
scalar-select.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
simple-unroll.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
small-loop.ll Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00
start-non-zero.ll Force a fixed unroll count on the target independent tests. 2013-01-05 00:58:48 +00:00
struct_access.ll Add support for reverse pointer induction variables. These are loops that contain pointers that count backwards. 2013-01-23 01:35:00 +00:00
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 Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now. 2013-01-09 01:20:59 +00:00