Commit 2b3ac48e by Jeff Law Committed by Jeff Law

tree-ssa-threadupdate.c (mark_threaded_blocks): Properly dispose of the jump thread path when...

       * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
        dispose of the jump thread path when the jump threading
        opportunity is cancelled.

From-SVN: r223448
parent c3a630ce
2015-05-20 Jeff Law <law@redhat.com>
* tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
dispose of the jump thread path when the jump threading
opportunity is cancelled.
2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org> 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
* diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
......
...@@ -2159,9 +2159,16 @@ mark_threaded_blocks (bitmap threaded_blocks) ...@@ -2159,9 +2159,16 @@ mark_threaded_blocks (bitmap threaded_blocks)
{ {
/* Attach the path to the starting edge if none is yet recorded. */ /* Attach the path to the starting edge if none is yet recorded. */
if ((*path)[0]->e->aux == NULL) if ((*path)[0]->e->aux == NULL)
(*path)[0]->e->aux = path; {
else if (dump_file && (dump_flags & TDF_DETAILS)) (*path)[0]->e->aux = path;
dump_jump_thread_path (dump_file, *path, false); }
else
{
paths.unordered_remove (i);
if (dump_file && (dump_flags & TDF_DETAILS))
dump_jump_thread_path (dump_file, *path, false);
delete_jump_thread_path (path);
}
} }
} }
/* Second, look for paths that have any other jump thread attached to /* Second, look for paths that have any other jump thread attached to
...@@ -2185,8 +2192,10 @@ mark_threaded_blocks (bitmap threaded_blocks) ...@@ -2185,8 +2192,10 @@ mark_threaded_blocks (bitmap threaded_blocks)
else else
{ {
e->aux = NULL; e->aux = NULL;
paths.unordered_remove (i);
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file && (dump_flags & TDF_DETAILS))
dump_jump_thread_path (dump_file, *path, false); dump_jump_thread_path (dump_file, *path, false);
delete_jump_thread_path (path);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment