llvm-project/llvm/test/Analysis/Delinearization
Sebastian Pop a6e5860513 remove constant terms
The delinearization is needed only to remove the non linearity induced by
expressions involving multiplications of parameters and induction variables.
There is no problem in dealing with constant times parameters, or constant times
an induction variable.

For this reason, the current patch discards all constant terms and multipliers
before running the delinearization algorithm on the terms. The only thing
remaining in the term expressions are parameters and multiply expressions of
parameters: these simplified term expressions are passed to the array shape
recognizer that will not recognize constant dimensions anymore: these will be
recognized as different strides in parametric subscripts.

The only important special case of a constant dimension is the size of elements.
Instead of relying on the delinearization to infer the size of an element,
compute the element size from the base address type. This is a much more precise
way of computing the element size than before, as we would have mixed together
the size of an element with the strides of the innermost dimension.

llvm-svn: 209691
2014-05-27 22:41:45 +00:00
..
a.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
gcd_multiply_expr.ll
himeno_1.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
himeno_2.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
iv_times_constant_in_subscript.ll remove constant terms 2014-05-27 22:41:45 +00:00
lit.local.cfg [Test] Trim unnecessary .c and .cpp from config.suffix in lit.local.cfg 2014-05-12 19:57:31 +00:00
multidim_ivs_and_integer_offsets_3d.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_ivs_and_integer_offsets_nts_3d.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_ivs_and_parameteric_offsets_3d.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_only_ivs_2d.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_only_ivs_2d_nested.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_only_ivs_3d.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_only_ivs_3d_cast.ll split delinearization pass in 3 steps 2014-05-07 18:01:20 +00:00
multidim_two_accesses_different_delinearization.ll do not assert when delinearization fails 2014-05-12 19:01:53 +00:00
undef.ll add testcase for r208237: do not collect undef terms 2014-05-08 18:38:58 +00:00