public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [tree-ssa] Crashes in UNSSA
@ 2003-04-27  3:36 Jan Vroonhof
  0 siblings, 0 replies; only message in thread
From: Jan Vroonhof @ 2003-04-27  3:36 UTC (permalink / raw)
  To: gcc


Yes, I know it isn't finished.
Yes, I know I am living dangerously by enabling copy propegation
Andrew probably knows this already anyway, but just in case it
saves him some time:

When I actually enable enough optimisation for unssa to be used in
earnest, I see crashes in bsi_commit_first_edge_insert.

It actually is in this fragment

      bsi = bsi_last (src);
      /* If it is an empty block, simply insert after this bsi, and the new stmt
	 will become the only stmt in the block.  */
      if (bsi_end_p (bsi))
        {
	  bsi_insert_after (&bsi, stmt, BSI_NEW_STMT);
	  return bsi;

What seems to be happening is that src is "quasi-empty", it only
contains (a list of) empty_stmt_node's (tree-ssa-dce has eliminated
all the expressions). In this case bsi_last returns a bsi with .pp =
0, which bsi_insert_after does not handle.

At this point I am not quite sure what the correct fix is.

Hope this is useful.

Jan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-26 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-27  3:36 [tree-ssa] Crashes in UNSSA Jan Vroonhof

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).