Commit 36290bb4 by Alexandre Oliva Committed by Alexandre Oliva

re PR debug/54693 (VTA guality issues with loops)

PR debug/54693
* gcc/valtrack.c (dead_debug_insert_temp): Defer rescan of
newly-emitted debug insn.

From-SVN: r192962
parent 61dc0ea7
2012-10-29 Alexandre Oliva <aoliva@redhat.com> 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
PR debug/54693 PR debug/54693
* gcc/valtrack.c (dead_debug_insert_temp): Defer rescan of
newly-emitted debug insn.
2012-10-29 Alexandre Oliva <aoliva@redhat.com>
PR debug/54693
* tree-ssa-threadedge.c (thread_around_empty_block): Copy * tree-ssa-threadedge.c (thread_around_empty_block): Copy
debug temps from predecessor before threading. debug temps from predecessor before threading.
...@@ -688,7 +688,9 @@ dead_debug_insert_temp (struct dead_debug_local *debug, unsigned int uregno, ...@@ -688,7 +688,9 @@ dead_debug_insert_temp (struct dead_debug_local *debug, unsigned int uregno,
bind = emit_debug_insn_after (bind, insn); bind = emit_debug_insn_after (bind, insn);
else else
bind = emit_debug_insn_before (bind, insn); bind = emit_debug_insn_before (bind, insn);
df_insn_rescan (bind); if (debug->to_rescan == NULL)
debug->to_rescan = BITMAP_ALLOC (NULL);
bitmap_set_bit (debug->to_rescan, INSN_UID (bind));
/* Adjust all uses. */ /* Adjust all uses. */
while ((cur = uses)) while ((cur = uses))
...@@ -699,8 +701,6 @@ dead_debug_insert_temp (struct dead_debug_local *debug, unsigned int uregno, ...@@ -699,8 +701,6 @@ dead_debug_insert_temp (struct dead_debug_local *debug, unsigned int uregno,
*DF_REF_REAL_LOC (cur->use) *DF_REF_REAL_LOC (cur->use)
= gen_lowpart_SUBREG (GET_MODE (*DF_REF_REAL_LOC (cur->use)), dval); = gen_lowpart_SUBREG (GET_MODE (*DF_REF_REAL_LOC (cur->use)), dval);
/* ??? Should we simplify subreg of subreg? */ /* ??? Should we simplify subreg of subreg? */
if (debug->to_rescan == NULL)
debug->to_rescan = BITMAP_ALLOC (NULL);
bitmap_set_bit (debug->to_rescan, INSN_UID (DF_REF_INSN (cur->use))); bitmap_set_bit (debug->to_rescan, INSN_UID (DF_REF_INSN (cur->use)));
uses = cur->next; uses = cur->next;
XDELETE (cur); XDELETE (cur);
......
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