public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55862] [4.8 Regression] ICE in compute_antic, at tree-ssa-pre.c:2495 Date: Fri, 04 Jan 2013 11:59:00 -0000 [thread overview] Message-ID: <bug-55862-4-77eWFM3lcS@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55862-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55862 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-04 11:59:42 UTC --- For BB 7 we iterate between (gdb) call debug_bitmap_set (old) debug[0] := { {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } (gdb) call debug_bitmap_set (((bb_value_sets_t) ((block)->aux))->antic_in) debug[0] := { p_25 (0024), {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } (gdb) call debug_bitmap_set (old) debug[0] := { p_25 (0024), {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } (gdb) call debug_bitmap_set (((bb_value_sets_t) ((block)->aux))->antic_in) debug[0] := { {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } (gdb) call debug_bitmap_set (old) debug[0] := { {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } (gdb) call debug_bitmap_set (((bb_value_sets_t) ((block)->aux))->antic_in) debug[0] := { p_25 (0024), {mem_ref<0B>,addr_expr<&g>}@.MEM_7 (0018), {plus_expr,g.0_18,1} (0031), {plus_expr,g.4_37,1} (0046), {mem_ref<0B>,addr_expr<&b>}@.MEM_7 (0049), {pointer_plus_expr,pretmp_45,4} (0050) } The CFG is quite complicated ... easier to read testcase: int g, a, *b; void f(void) { int *p; if(g) { int **k = &p; for(; g; p++) for(a = 0; a < 1; a++) { int *c = p; label2: if(a < 1) *c = 0; } goto label1; while(g++) for(*b = 0; *b; b++) label1: ; } goto label2; } I have a patch.
next prev parent reply other threads:[~2013-01-04 11:59 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-03 14:13 [Bug tree-optimization/55862] New: " antoine.balestrat at gmail dot com 2013-01-03 16:20 ` [Bug tree-optimization/55862] [4.8 Regression] " rguenth at gcc dot gnu.org 2013-01-04 11:59 ` rguenth at gcc dot gnu.org [this message] 2013-01-04 13:29 ` rguenth at gcc dot gnu.org 2013-01-04 13:29 ` rguenth at gcc dot gnu.org 2013-01-07 13:50 ` rguenth at gcc dot gnu.org 2013-01-07 14:06 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-55862-4-77eWFM3lcS@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).