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/63476] [5 Regression] ICE: tree check: expected ssa_name, have var_decl in walk_aliased_vdefs_1, at tree-ssa-alias.c:2689 Date: Thu, 09 Oct 2014 11:12:00 -0000 [thread overview] Message-ID: <bug-63476-4-jzFIB8OgLM@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-63476-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63476 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Ah, #5 0x0000000000c263c2 in ipa_polymorphic_call_context::get_dynamic_type ( this=0x7fffffffd790, instance=<ssa_name 0x7ffff687b678>, otr_object=<ssa_name 0x7ffff687b678>, otr_type=<record_type 0x7ffff6867b28 D>, call=<gimple_call 0x7ffff6895498>) at /space/rguenther/src/svn/trunk/gcc/ipa-polymorphic-call.c:1606 (gdb) l 1601 tci.multiple_types_encountered = false; 1602 tci.speculative = false; 1603 tci.seen_unanalyzed_store = false; 1604 1605 walk_aliased_vdefs (&ao, gimple_vuse (stmt), check_stmt_for_type_change, 1606 &tci, NULL, &function_entry_reached); this walks on gimple_vuse! (gdb) p debug_gimple_stmt (stmt) # VUSE <.MEM> pretmp_5 = this_10(D)->D.2797._vptr.A; VUSEs are not kept renamed by load PRE insertion phase so this will not work. The function is called on the call # .MEM_45 = VDEF <.MEM_6(D)> OBJ_TYPE_REF(pretmp_1;(struct D)this_10(D)->0) (this_10(D), p1_11(D), p2_14(D), 0); Of course it would be nice to keep virtual SSA form up-to-date during PRE insertion, but as of now that was not necessary (and we can't simply rename VOPs as that will break the SSA value-numbering lattice which includes virtuals). Keeping virtual SSA form up-to-date requires computing the life virtual operand on edges (which means BB exit). I'm going to try that.
next prev parent reply other threads:[~2014-10-09 11:12 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-10-07 21:05 [Bug tree-optimization/63476] New: " trippels at gcc dot gnu.org 2014-10-08 11:11 ` [Bug tree-optimization/63476] " rguenth at gcc dot gnu.org 2014-10-09 11:12 ` rguenth at gcc dot gnu.org [this message] 2014-10-10 11:05 ` rguenth at gcc dot gnu.org 2014-10-10 11:09 ` 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-63476-4-jzFIB8OgLM@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).