public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault
@ 2008-10-27 18:51 mitul dot thakkar at amd dot com
2008-10-27 18:53 ` [Bug middle-end/37928] " mitul dot thakkar at amd dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: mitul dot thakkar at amd dot com @ 2008-10-27 18:51 UTC (permalink / raw)
To: gcc-bugs
gcc -O3 -floop-block test_seg.c
test_seg.c: In function 'gate1':
test_seg.c:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
GDB bt is giving following result:
(gdb) set args -O3 -floop-block test_seg.c
(gdb) r
Starting program: /u/ssa/mthakkar/gcc_latest/graphite_build/gcc/cc1 -O3
-floop-block test_seg.c
vprintf getchar getc_unlocked getchar_unlocked putchar fputc_unlocked
putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked get_state gate1
Analyzing compilation unit
Performing interprocedural optimizations
<visibility> <early_local_cleanups> <summary generate> <cp> <inline>
<static-var> <pure-const>Assembling functions:
get_state gate1
Program received signal SIGSEGV, Segmentation fault.
0x0000000000ab8eb8 in build_scops_1 (current=0x0, scops=0x7fff76984028,
loop=0x2b6f355c5460) at ../../graphite/gcc/graphite.c:1507
1507 for (i = 0; VEC_iterate (edge, sinfo.last->succs, i, e); i++)
(gdb) bt
#0 0x0000000000ab8eb8 in build_scops_1 (current=0x0, scops=0x7fff76984028,
loop=0x2b6f355c5460) at ../../graphite/gcc/graphite.c:1507
#1 0x0000000000ab9779 in build_scops_1 (current=0x2b6f355c0660,
scops=0x7fff76984168, loop=0x2b6f355c5500) at
../../graphite/gcc/graphite.c:1433
#2 0x0000000000ab9123 in build_scops_1 (current=0x2b6f355c0360,
scops=0x7fff769842a8, loop=0x2b6f355c5460) at
../../graphite/gcc/graphite.c:1304
#3 0x0000000000ab9123 in build_scops_1 (current=0x2b6f355b3d80,
scops=0x7fff769843e8, loop=0x2b6f355c53c0) at
../../graphite/gcc/graphite.c:1304
#4 0x0000000000ab9038 in build_scops_1 (current=0x2b6f355b3de0,
scops=0x7fff76984528, loop=0x2b6f355c5320) at
../../graphite/gcc/graphite.c:1268
#5 0x0000000000ab93c4 in build_scops_1 (current=0x2b6f35594e40,
scops=0x7fff76984618, loop=0x2b6f355c5320) at
../../graphite/gcc/graphite.c:1377
#6 0x0000000000abbbfe in graphite_transform_loops () at
../../graphite/gcc/graphite.c:1837
#7 0x00000000007b0557 in graphite_transforms () at
../../graphite/gcc/tree-ssa-loop.c:298
#8 0x000000000063ce28 in execute_one_pass (pass=0xf21d60) at
../../graphite/gcc/passes.c:1279
#9 0x000000000063d065 in execute_pass_list (pass=0xf21d60) at
../../graphite/gcc/passes.c:1327
#10 0x000000000063d07d in execute_pass_list (pass=0xf21ac0) at
../../graphite/gcc/passes.c:1328
#11 0x000000000063d07d in execute_pass_list (pass=0xf20f80) at
../../graphite/gcc/passes.c:1328
#12 0x00000000007313cc in tree_rest_of_compilation (fndecl=0x2b6f35590a00) at
../../graphite/gcc/tree-optimize.c:418
#13 0x00000000008a6c64 in cgraph_expand_function (node=0x2b6f35590b00) at
../../graphite/gcc/cgraphunit.c:1038
#14 0x00000000008a8a35 in cgraph_optimize () at
../../graphite/gcc/cgraphunit.c:1097
#15 0x0000000000417363 in c_write_global_declarations () at
../../graphite/gcc/c-decl.c:8073
#16 0x00000000006e2adf in toplev_main (argc=<value optimized out>, argv=<value
optimized out>) at ../../graphite/gcc/toplev.c:979
#17 0x00002b6f34d1f184 in __libc_start_main () from /lib64/libc.so.6
#18 0x0000000000404e89 in _start ()
--
Summary: [graphite] ICE :Segmentation fault
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mitul dot thakkar at amd dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
@ 2008-10-27 18:53 ` mitul dot thakkar at amd dot com
2008-10-30 4:15 ` grosser at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mitul dot thakkar at amd dot com @ 2008-10-27 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mitul dot thakkar at amd dot com 2008-10-27 18:51 -------
Created an attachment (id=16568)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16568&action=view)
Reduced test case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
2008-10-27 18:53 ` [Bug middle-end/37928] " mitul dot thakkar at amd dot com
@ 2008-10-30 4:15 ` grosser at gcc dot gnu dot org
2008-10-30 4:16 ` grosser at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-30 4:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from grosser at gcc dot gnu dot org 2008-10-30 04:15 -------
Created an attachment (id=16586)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16586&action=view)
Add POINTER_PLUS_EXPR - Improvement?
It seems we miss the POINTER_PLUS_EXPR. In most cases in tree-scalar-evol.c and
tree-chrec.c it is handled like a PLUS_EXPR. If I add it, the test case passes
the front end, but fails again in gloog() with:
#0 0x089d919f in link_imm_use (linknode=0x29072c4c, def=0x20017) at
tree-flow-inline.h:323
#1 0x089d914e in set_ssa_use_from_ptr (use=0x29072c4c, val=0x20017) at
tree-flow-inline.h:342
#2 0x089d9097 in graphite_rename_variables_in_stmt (stmt=0x29060528,
map=0x8d8b040)
at ../../../git/gcc/graphite.c:3512
#3 0x089d9b89 in graphite_rename_variables (bb=0x29060618, map=0x8d8b040)
at ../../../git/gcc/graphite.c:3685
#4 0x089da177 in translate_clast (scop=0x8d321c0, context_loop=0x29100948,
stmt=0x8d8a350,
next_e=0x290c2988, ivstack=0xbfbfe880) at ../../../git/gcc/graphite.c:3816
#5 0x089d9fbd in translate_clast (scop=0x8d321c0, context_loop=0x29100948,
stmt=0x8d8a110,
next_e=0x290c25c8, ivstack=0xbfbfe880) at ../../../git/gcc/graphite.c:3781
I will have to think about the patch. Opinions?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
2008-10-27 18:53 ` [Bug middle-end/37928] " mitul dot thakkar at amd dot com
2008-10-30 4:15 ` grosser at gcc dot gnu dot org
@ 2008-10-30 4:16 ` grosser at gcc dot gnu dot org
2008-10-30 4:28 ` grosser at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-30 4:16 UTC (permalink / raw)
To: gcc-bugs
--
grosser at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |grosser at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-10-30 04:16:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
` (2 preceding siblings ...)
2008-10-30 4:16 ` grosser at gcc dot gnu dot org
@ 2008-10-30 4:28 ` grosser at gcc dot gnu dot org
2008-11-05 5:29 ` grosser at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-10-30 4:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from grosser at gcc dot gnu dot org 2008-10-30 04:28 -------
(From update of attachment 16586)
This patch was thought for another bug.
--
grosser at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #16586|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
` (3 preceding siblings ...)
2008-10-30 4:28 ` grosser at gcc dot gnu dot org
@ 2008-11-05 5:29 ` grosser at gcc dot gnu dot org
2008-12-03 7:37 ` spop at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: grosser at gcc dot gnu dot org @ 2008-11-05 5:29 UTC (permalink / raw)
To: gcc-bugs
--
grosser at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |grosser at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2008-10-30 04:16:30 |2008-11-05 05:28:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
` (4 preceding siblings ...)
2008-11-05 5:29 ` grosser at gcc dot gnu dot org
@ 2008-12-03 7:37 ` spop at gcc dot gnu dot org
2008-12-11 7:28 ` spop at gcc dot gnu dot org
2008-12-11 7:41 ` spop at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-12-03 7:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from spop at gcc dot gnu dot org 2008-12-03 07:35 -------
Subject: Bug 37928
Author: spop
Date: Wed Dec 3 07:33:52 2008
New Revision: 142384
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142384
Log:
2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
Jan Sjodin <jan.sjodin@amd.com>
Harsha Jagasia <harsha.jagasia@amd.com>
PR middle-end/37852
PR middle-end/37883
PR middle-end/37928
PR middle-end/37980
PR middle-end/38038
PR middle-end/38039
PR middle-end/38073
PR middle-end/38083
PR middle-end/38125
* testsuite/gcc.dg/graphite/pr38073.c: New.
* testsuite/gcc.dg/graphite/pr37928.c: New.
* testsuite/gcc.dg/graphite/pr37883.c: New.
* testsuite/gcc.dg/graphite/pr38125.c: New.
* testsuite/gfortran.dg/graphite/pr38083.f90: New.
* testsuite/gfortran.dg/graphite/pr37852.f90: New.
* testsuite/gfortran.dg/graphite/pr37980.f90: New.
* testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
the number of detected scops. Copy exact same test for loop
blocking...
* testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected loops
to be blocked as reductions are not handled.
* testsuite/gcc.dg/graphite/block-4.c: ...here. New.
* tree-phinodes.c (remove_phi_nodes): New, extracted from...
* tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
...here.
* tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
* Makefile.in (graphite.o): Depend on value-prof.h.
(graphite.o-warn): Removed -Wno-error.
* tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
to be a NULL pointer. Call update_stmt. Return the newly created
cannonical induction variable.
* graphite.h (debug_rename_map): Declared. Fix some comments.
* graphite.c: Reimplement the code generation from graphite to gimple.
Include value-prof.h.
(loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
(get_old_iv_from_ssa_name): Removed.
(graphite_stmt_p): New.
(new_graphite_bb): Test for useful statements before building a
graphite statement for the basic block.
(free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
reason.
(recompute_all_dominators, graphite_verify,
nb_reductions_in_loop, graphite_loop_normal_form): New.
(scop_record_loop): Call graphite_loop_normal_form.
(build_scop_loop_nests): Iterate over all the blocks of the
function instead of relying on the incomplete information from
SCOP_BBS. Return the success of the operation.
(find_params_in_bb): Use the data from GBB_DATA_REFS.
(add_bb_domains): Removed.
(build_loop_iteration_domains): Don't call add_bb_domains.
Add the iteration domain only to the basic blocks that have been
translated to graphite.
(build_scop_conditions_1): Add constraints only if the basic
block have been translated to graphite.
(build_scop_data_accesses): Completely disabled until data
dependence is correctly implemented.
(debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
(remove_all_edges_1, remove_all_edges): Removed.
(get_new_name_from_old_name): New.
(graphite_rename_variables_in_stmt): Renamed
rename_variables_in_stmt. Call get_new_name_from_old_name.
Use replace_exp and update_stmt.
(is_old_iv): Renamed is_iv.
(expand_scalar_variables_stmt): Extra parameter for renaming map.
Use replace_exp and update_stmt.
(expand_scalar_variables_expr): Same. Use the map to get the
new names for the renaming of induction variables and for the
renaming of variables after a basic block has been copied.
(expand_scalar_variables): Same.
(graphite_rename_variables): Renamed rename_variables.
(move_phi_nodes): Removed.
(get_false_edge_from_guard_bb): New.
(build_iv_mapping): Do not insert the induction variable of a
loop in the renaming iv map if the basic block does not belong
to that loop.
(register_old_new_names, graphite_copy_stmts_from_block,
copy_bb_and_scalar_dependences): New.
(translate_clast): Heavily reimplemented: copy basic blocks,
do not move them. Finally, in call cleanup_tree_cfg in gloog.
At each translation step call graphite_verify ensuring the
consistency of the SSA, loops and dominators information.
(collect_virtual_phis, find_vdef_for_var_in_bb,
find_vdef_for_var_1, find_vdef_for_var,
patch_phis_for_virtual_defs): Removed huge hack.
(mark_old_loops, remove_dead_loops, skip_phi_defs,
collect_scop_exit_phi_args, patch_scop_exit_phi_args,
gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
(remove_sese_region, ifsese, if_region_entry, if_region_exit,
if_region_get_condition_block, if_region_set_false_region,
create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
sese_add_exit_phis_edge, sese_add_exit_phis_var,
rewrite_into_sese_closed_ssa): New.
(gloog): Remove dead code. Early return if code cannot be
generated. Call cleanup_tree_cfg once the scop has been code
generated.
(graphite_trans_scop_block, graphite_trans_loop_block): Do not
block loops with less than two loops.
(graphite_apply_transformations): Remove the call to
scop_remove_ignoreable_gbbs.
(limit_scops): When build_scop_loop_nests fails, continue on next scop.
Fix open_scop.entry.
(graphite_transform_loops): Call recompute_all_dominators: force the
recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
Call initialize_original_copy_tables and free_original_copy_tables
to be able to copy basic blocks during code generation.
When build_scop_loop_nests fails, continue on next scop.
(value_clast): New union.
(clast_to_gcc_expression): Fix type cast warning.
Added:
branches/graphite/gcc/testsuite/gcc.dg/graphite/block-4.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr37883.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr37928.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr38073.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr38125.c
branches/graphite/gcc/testsuite/gfortran.dg/graphite/pr37852.f90
branches/graphite/gcc/testsuite/gfortran.dg/graphite/pr37980.f90
branches/graphite/gcc/testsuite/gfortran.dg/graphite/pr38083.f90
Modified:
branches/graphite/gcc/ChangeLog.graphite
branches/graphite/gcc/Makefile.in
branches/graphite/gcc/graphite.c
branches/graphite/gcc/graphite.h
branches/graphite/gcc/testsuite/gcc.dg/graphite/block-1.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/scop-18.c
branches/graphite/gcc/tree-cfg.c
branches/graphite/gcc/tree-flow.h
branches/graphite/gcc/tree-parloops.c
branches/graphite/gcc/tree-phinodes.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
` (5 preceding siblings ...)
2008-12-03 7:37 ` spop at gcc dot gnu dot org
@ 2008-12-11 7:28 ` spop at gcc dot gnu dot org
2008-12-11 7:41 ` spop at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-12-11 7:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from spop at gcc dot gnu dot org 2008-12-11 07:24 -------
Subject: Bug 37928
Author: spop
Date: Thu Dec 11 07:23:02 2008
New Revision: 142673
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142673
Log:
2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
Fix testsuite/gfortran.dg/graphite/id-4.f90.
* graphite.c (scan_tree_for_params): Do not compute the multiplicand
when not needed.
2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
* graphite.c (build_scops_1): Initialize open_scop.exit
and sinfo.last.
2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
Jan Sjodin <jan.sjodin@amd.com>
Harsha Jagasia <harsha.jagasia@amd.com>
PR middle-end/37852
PR middle-end/37883
PR middle-end/37928
PR middle-end/37980
PR middle-end/38038
PR middle-end/38039
PR middle-end/38073
PR middle-end/38083
PR middle-end/38125
* tree-phinodes.c (remove_phi_nodes): New, extracted from...
* tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
...here.
* tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
* Makefile.in (graphite.o): Depend on value-prof.h.
(graphite.o-warn): Removed -Wno-error.
* tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
to be a NULL pointer. Call update_stmt. Return the newly created
cannonical induction variable.
* graphite.h (debug_rename_map): Declared. Fix some comments.
* graphite.c: Reimplement the code generation from graphite to gimple.
Include value-prof.h.
(loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
(get_old_iv_from_ssa_name): Removed.
(graphite_stmt_p): New.
(new_graphite_bb): Test for useful statements before building a
graphite statement for the basic block.
(free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
reason.
(recompute_all_dominators, graphite_verify,
nb_reductions_in_loop, graphite_loop_normal_form): New.
(scop_record_loop): Call graphite_loop_normal_form.
(build_scop_loop_nests): Iterate over all the blocks of the
function instead of relying on the incomplete information from
SCOP_BBS. Return the success of the operation.
(find_params_in_bb): Use the data from GBB_DATA_REFS.
(add_bb_domains): Removed.
(build_loop_iteration_domains): Don't call add_bb_domains.
Add the iteration domain only to the basic blocks that have been
translated to graphite.
(build_scop_conditions_1): Add constraints only if the basic
block have been translated to graphite.
(build_scop_data_accesses): Completely disabled until data
dependence is correctly implemented.
(debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
(remove_all_edges_1, remove_all_edges): Removed.
(get_new_name_from_old_name): New.
(graphite_rename_variables_in_stmt): Renamed
rename_variables_in_stmt. Call get_new_name_from_old_name.
Use replace_exp and update_stmt.
(is_old_iv): Renamed is_iv.
(expand_scalar_variables_stmt): Extra parameter for renaming map.
Use replace_exp and update_stmt.
(expand_scalar_variables_expr): Same. Use the map to get the
new names for the renaming of induction variables and for the
renaming of variables after a basic block has been copied.
(expand_scalar_variables): Same.
(graphite_rename_variables): Renamed rename_variables.
(move_phi_nodes): Removed.
(get_false_edge_from_guard_bb): New.
(build_iv_mapping): Do not insert the induction variable of a
loop in the renaming iv map if the basic block does not belong
to that loop.
(register_old_new_names, graphite_copy_stmts_from_block,
copy_bb_and_scalar_dependences): New.
(translate_clast): Heavily reimplemented: copy basic blocks,
do not move them. Finally, in call cleanup_tree_cfg in gloog.
At each translation step call graphite_verify ensuring the
consistency of the SSA, loops and dominators information.
(collect_virtual_phis, find_vdef_for_var_in_bb,
find_vdef_for_var_1, find_vdef_for_var,
patch_phis_for_virtual_defs): Removed huge hack.
(mark_old_loops, remove_dead_loops, skip_phi_defs,
collect_scop_exit_phi_args, patch_scop_exit_phi_args,
gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
(remove_sese_region, ifsese, if_region_entry, if_region_exit,
if_region_get_condition_block, if_region_set_false_region,
create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
sese_add_exit_phis_edge, sese_add_exit_phis_var,
rewrite_into_sese_closed_ssa): New.
(gloog): Remove dead code. Early return if code cannot be
generated. Call cleanup_tree_cfg once the scop has been code
generated.
(graphite_trans_scop_block, graphite_trans_loop_block): Do not
block loops with less than two loops.
(graphite_apply_transformations): Remove the call to
scop_remove_ignoreable_gbbs.
(limit_scops): When build_scop_loop_nests fails, continue on next scop.
Fix open_scop.entry.
(graphite_transform_loops): Call recompute_all_dominators: force the
recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
Call initialize_original_copy_tables and free_original_copy_tables
to be able to copy basic blocks during code generation.
When build_scop_loop_nests fails, continue on next scop.
(value_clast): New union.
(clast_to_gcc_expression): Fix type cast warning.
2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
* gcc.dg/graphite/pr37928.c: New.
* gcc.dg/graphite/pr37883.c: New.
* gcc.dg/graphite/pr38073.c: New.
* gcc.dg/graphite/pr38125.c: New.
* gfortran.dg/graphite/pr38083.f90: New.
* gfortran.dg/graphite/pr37852.f90: New.
* gfortran.dg/graphite/pr37980.f90: New.
* gfortran.dg/graphite/id-2.f90: New.
* gfortran.dg/graphite/id-4.f90: New.
* gcc.dg/graphite/scop-18.c: Remove reduction, test for
the number of detected scops. Copy exact same test for loop
blocking...
* gcc.dg/graphite/block-1.c: Fix the number of expected loops
to be blocked as reductions are not handled.
* gcc.dg/graphite/block-4.c: ...here. New.
Added:
trunk/gcc/testsuite/gcc.dg/graphite/block-4.c
trunk/gcc/testsuite/gcc.dg/graphite/pr37883.c
trunk/gcc/testsuite/gcc.dg/graphite/pr37928.c
trunk/gcc/testsuite/gcc.dg/graphite/pr38073.c
trunk/gcc/testsuite/gcc.dg/graphite/pr38125.c
trunk/gcc/testsuite/gfortran.dg/graphite/id-2.f90
trunk/gcc/testsuite/gfortran.dg/graphite/id-4.f90
trunk/gcc/testsuite/gfortran.dg/graphite/pr37852.f90
trunk/gcc/testsuite/gfortran.dg/graphite/pr37980.f90
trunk/gcc/testsuite/gfortran.dg/graphite/pr38083.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/graphite.c
trunk/gcc/graphite.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/graphite/block-1.c
trunk/gcc/testsuite/gcc.dg/graphite/scop-18.c
trunk/gcc/tree-cfg.c
trunk/gcc/tree-flow.h
trunk/gcc/tree-parloops.c
trunk/gcc/tree-phinodes.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/37928] [graphite] ICE :Segmentation fault
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
` (6 preceding siblings ...)
2008-12-11 7:28 ` spop at gcc dot gnu dot org
@ 2008-12-11 7:41 ` spop at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-12-11 7:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from spop at gcc dot gnu dot org 2008-12-11 07:32 -------
Fixed.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-12-11 7:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 18:51 [Bug middle-end/37928] New: [graphite] ICE :Segmentation fault mitul dot thakkar at amd dot com
2008-10-27 18:53 ` [Bug middle-end/37928] " mitul dot thakkar at amd dot com
2008-10-30 4:15 ` grosser at gcc dot gnu dot org
2008-10-30 4:16 ` grosser at gcc dot gnu dot org
2008-10-30 4:28 ` grosser at gcc dot gnu dot org
2008-11-05 5:29 ` grosser at gcc dot gnu dot org
2008-12-03 7:37 ` spop at gcc dot gnu dot org
2008-12-11 7:28 ` spop at gcc dot gnu dot org
2008-12-11 7:41 ` spop at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).