mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 09:40:54 +08:00
A function is affine when CHREC_RIGHT is invariant.
2010-08-20 Sebastian Pop <sebastian.pop@amd.com> * tree-chrec.h (evolution_function_is_affine_p): Do not check whether CHREC_LEFT is invariant. A function is affine when CHREC_RIGHT is invariant. From-SVN: r164788
This commit is contained in:
parent
c2bc669e2c
commit
21d9100956
@ -1,3 +1,9 @@
|
||||
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* tree-chrec.h (evolution_function_is_affine_p): Do not check
|
||||
whether CHREC_LEFT is invariant. A function is affine when
|
||||
CHREC_RIGHT is invariant.
|
||||
|
||||
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* graphite-sese-to-poly.c (reduction_phi_p): Remove check for
|
||||
|
@ -1,3 +1,9 @@
|
||||
2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* tree-chrec.h (evolution_function_is_affine_p): Do not check
|
||||
whether CHREC_LEFT is invariant. A function is affine when
|
||||
CHREC_RIGHT is invariant.
|
||||
|
||||
2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* graphite-sese-to-poly.c (reduction_phi_p): Remove check for
|
||||
|
@ -202,23 +202,10 @@ evolution_function_is_affine_in_loop (const_tree chrec, int loopnum)
|
||||
static inline bool
|
||||
evolution_function_is_affine_p (const_tree chrec)
|
||||
{
|
||||
if (chrec == NULL_TREE)
|
||||
return false;
|
||||
|
||||
switch (TREE_CODE (chrec))
|
||||
{
|
||||
case POLYNOMIAL_CHREC:
|
||||
if (evolution_function_is_invariant_p (CHREC_LEFT (chrec),
|
||||
CHREC_VARIABLE (chrec))
|
||||
&& evolution_function_is_invariant_p (CHREC_RIGHT (chrec),
|
||||
CHREC_VARIABLE (chrec)))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return chrec
|
||||
&& TREE_CODE (chrec) == POLYNOMIAL_CHREC
|
||||
&& evolution_function_is_invariant_p (CHREC_RIGHT (chrec),
|
||||
CHREC_VARIABLE (chrec));
|
||||
}
|
||||
|
||||
/* Determines whether EXPR does not contains chrec expressions. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user