* ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
From-SVN: r188867
This commit is contained in:
parent
ce8fe26dc0
commit
1ca63357cb
|
@ -1,3 +1,7 @@
|
|||
2012-06-21 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
|
||||
|
||||
2012-06-21 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR debug/53682
|
||||
|
|
10
gcc/ddg.c
10
gcc/ddg.c
|
@ -531,7 +531,15 @@ build_intra_loop_deps (ddg_ptr g)
|
|||
|
||||
FOR_EACH_DEP (dest_node->insn, SD_LIST_BACK, sd_it, dep)
|
||||
{
|
||||
ddg_node_ptr src_node = get_node_of_insn (g, DEP_PRO (dep));
|
||||
rtx src_insn = DEP_PRO (dep);
|
||||
ddg_node_ptr src_node;
|
||||
|
||||
/* Don't add dependencies on debug insns to non-debug insns
|
||||
to avoid codegen differences between -g and -g0. */
|
||||
if (DEBUG_INSN_P (src_insn) && !DEBUG_INSN_P (dest_node->insn))
|
||||
continue;
|
||||
|
||||
src_node = get_node_of_insn (g, src_insn);
|
||||
|
||||
if (!src_node)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue