This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/37221] Missed early loop-unroll optimization - causes 40% degradation on SPU



------- Comment #12 from tehila at il dot ibm dot com  2008-09-08 08:21 -------
(In reply to comment #11)
> (In reply to comment #10)
> > I'm bootstraping and testing it on x86 now.
> Bootstrap fails (at least on x86_64) (with ICE).
> Tehila.

It fails at tree-ssa-loop-manip.c:424 (+-, I've changed it a little bit), on:
gcc_assert (!def_bb
              || flow_bb_inside_loop_p (def_bb->loop_father, bb));

Error:
In file included from ../../gcc/libiberty/regex.c:638:
../../gcc/libiberty/regex.c: In function â??byte_regex_compileâ??:
../../gcc/libiberty/regex.c:2285: internal compiler error: in
check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:424


Here is some info GDB gives:
#0  check_loop_closed_ssa_use (bb=0x2b9638623f00, use=0x2b963870c460) at
../../gcc/gcc/tree-ssa-loop-manip.c:422
#1  0x00000000009cffdc in check_loop_closed_ssa_stmt (bb=0x2b9638623f00,
stmt=0x2b963822b150) at ../../gcc/gcc/tree-ssa-loop-manip.c:436
#2  0x00000000009d0179 in verify_loop_closed_ssa () at
../../gcc/gcc/tree-ssa-loop-manip.c:466
#3  0x00000000007a14bf in execute_function_todo (data=0x63) at
../../gcc/gcc/passes.c:1004
#4  0x00000000007a0f2e in do_per_function (callback=0x7a11cb
<execute_function_todo>, data=0x63) at ../../gcc/gcc/passes.c:840
#5  0x00000000007a1541 in execute_todo (flags=99) at
../../gcc/gcc/passes.c:1024
#6  0x00000000007a1fc5 in execute_one_pass (pass=0x13494c0) at
../../gcc/gcc/passes.c:1300
#7  0x00000000007a214d in execute_pass_list (pass=0x13494c0) at
../../gcc/gcc/passes.c:1326
#8  0x00000000007a216b in execute_pass_list (pass=0x13490a0) at
../../gcc/gcc/passes.c:1327
#9  0x00000000007a216b in execute_pass_list (pass=0x1348560) at
../../gcc/gcc/passes.c:1327
#10 0x00000000009140c6 in tree_rest_of_compilation (fndecl=0x2b9638292900) at
../../gcc/gcc/tree-optimize.c:418
#11 0x0000000000b49808 in cgraph_expand_function (node=0x2b96382b3f00) at
../../gcc/gcc/cgraphunit.c:1039
#12 0x0000000000b499a2 in cgraph_expand_all_functions () at
../../gcc/gcc/cgraphunit.c:1101
#13 0x0000000000b49f43 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1306
#14 0x000000000042f789 in c_write_global_declarations () at
../../gcc/gcc/c-decl.c:8080
#15 0x000000000089c5a9 in compile_file () at ../../gcc/gcc/toplev.c:979
#16 0x000000000089e3f6 in do_compile () at ../../gcc/gcc/toplev.c:2181
#17 0x000000000089e45a in toplev_main (argc=30, argv=0x7fff730801f8) at
../../gcc/gcc/toplev.c:2213
#18 0x00000000004d3bb7 in main (argc=30, argv=0x7fff730801f8) at
../../gcc/gcc/main.c:35

stmt is:
D.9310_4596 = b_3442 + -1;

def stmt is:
b_3442 = PHI <b_2310(130), b_620(141)>


HTH,
Tehila.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37221


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]