Commit f9344488 by Sebastian Pop Committed by Sebastian Pop

re PR middle-end/38786 ([graphite] ICE with -floop-block in verify_ssa)

2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/38786
	* gcc.dg/graphite/pr38786.c: New.
	* graphite.c (expand_scalar_variables_ssa_name): New, outlined from
	the SSA_NAME case of expand_scalar_variables_expr.
	Set the type of an expression to the type of its assign	statement.
	(expand_scalar_variables_expr): Also gather the scalar computation
	used to index the memory access.  Do not pass loop_p.
	Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
	(expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
	the gimple_stmt_iterator where it inserts new code.  Do not pass loop_p.
	(copy_bb_and_scalar_dependences): Do not pass loop_p.
	(translate_clast): Update call to copy_bb_and_scalar_dependences.

From-SVN: r143341
parent 2d8bb84d
2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/38786
* graphite.c (expand_scalar_variables_ssa_name): New, outlined from
the SSA_NAME case of expand_scalar_variables_expr.
Set the type of an expression to the type of its assign statement.
(expand_scalar_variables_expr): Also gather the scalar computation
used to index the memory access. Do not pass loop_p.
Fix comment. Stop recursion on tcc_constant or tcc_declaration.
(expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
the gimple_stmt_iterator where it inserts new code. Do not pass loop_p.
(copy_bb_and_scalar_dependences): Do not pass loop_p.
(translate_clast): Update call to copy_bb_and_scalar_dependences.
2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
* graphite.h (debug_value): Removed.
* graphite.c (debug_value): Removed.
......
2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/38786
* gcc.dg/graphite/pr38786.c: New.
2009-01-13 Uros Bizjak <ubizjak@gmail.com>
Revert:
......
/* { dg-options "-O2 -fgraphite-identity" } */
typedef struct
{
int ****cofAC;
} ImageParameters;
typedef struct
{
int ****cofAC;
} RD_DATA;
extern RD_DATA *rdopt;
extern ImageParameters *img;
dummy_slice_too_big (int bits_slice)
{
int i, j, k, l;
for (j = 0; j < 4; j++)
for (k = 0; k < 2; k++)
for (l = 0; l < 65; l++)
img->cofAC[i][j][k][l] = rdopt->cofAC[i][j][k][l];
}
/* { dg-options "-O2 -fgraphite-identity" } */
typedef struct
{
int ****cofAC;
} ImageParameters;
typedef struct
{
int ****cofAC;
} RD_DATA;
extern RD_DATA *rdopt;
extern ImageParameters *img;
dummy_slice_too_big (int bits_slice)
{
int i, j, k, l;
for (j = 0; j < 4; j++)
for (k = 0; k < 2; k++)
for (l = 0; l < 65; l++)
img->cofAC[i][j][k][l] = rdopt->cofAC[i][j][k][l];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment