1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/Analysis/Delinearization
Bjarke Hammersholt Roune c5853844e0 [SCEV] Apply NSW and NUW flags via poison value analysis for sub, mul and shl
Summary:
http://reviews.llvm.org/D11212 made Scalar Evolution able to propagate NSW and NUW flags from instructions to SCEVs for add instructions. This patch expands that to sub, mul and shl instructions.

This change makes LSR able to generate pointer induction variables for loops like these, where the index is 32 bit and the pointer is 64 bit:

  for (int i = 0; i < numIterations; ++i)
    sum += ptr[i - offset];

  for (int i = 0; i < numIterations; ++i)
    sum += ptr[i * stride];

  for (int i = 0; i < numIterations; ++i)
    sum += ptr[3 * (i << 7)];


Reviewers: atrick, sanjoy

Subscribers: sanjoy, majnemer, hfinkel, llvm-commits, meheff, jingyue, eliben

Differential Revision: http://reviews.llvm.org/D11860

llvm-svn: 245118
2015-08-14 22:45:26 +00:00
..
a.ll [SCEV] Apply NSW and NUW flags via poison value analysis for sub, mul and shl 2015-08-14 22:45:26 +00:00
divide_by_one.ll
gcd_multiply_expr.ll
himeno_1.ll
himeno_2.ll
iv_times_constant_in_subscript.ll
lit.local.cfg
multidim_ivs_and_integer_offsets_3d.ll [SCEV] Apply NSW and NUW flags via poison value analysis 2015-07-28 18:22:40 +00:00
multidim_ivs_and_integer_offsets_nts_3d.ll
multidim_ivs_and_parameteric_offsets_3d.ll [SCEV] Apply NSW and NUW flags via poison value analysis 2015-07-28 18:22:40 +00:00
multidim_only_ivs_2d_nested.ll
multidim_only_ivs_2d.ll
multidim_only_ivs_3d_cast.ll
multidim_only_ivs_3d.ll
multidim_two_accesses_different_delinearization.ll
type_mismatch.ll Fix a type mismatch assert in SCEV division 2015-04-22 15:06:40 +00:00
undef.ll