aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-invariant.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2015-08-04 02:11:58 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2015-08-04 02:11:58 +0000
commit43d56ad78ddc903e61abeaa2efaff2efa2de941d (patch)
tree4665f4d18b1ff681b729f8e6332f6317ef394f2d /gcc/loop-invariant.c
parent9ebddeb045135d827eb59bfa822a0b026ea39f04 (diff)
downloadgcc-43d56ad78ddc903e61abeaa2efaff2efa2de941d.zip
gcc-43d56ad78ddc903e61abeaa2efaff2efa2de941d.tar.gz
gcc-43d56ad78ddc903e61abeaa2efaff2efa2de941d.tar.bz2
re PR debug/67043 (-fcompare-debug failure with -O3)
2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ PR tree-optimization/67043 * loop-invariant.c (move_invariant_reg): Recompute luids in loop preheader after hoisting invariant in it. (find_defs): Force recomputation of all luids. gcc/testsuite/ PR tree-optimization/67043 * gcc.dg/pr67043.c: New test. From-SVN: r226540
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r--gcc/loop-invariant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index 1fdb84d..52c8ae8 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -676,6 +676,8 @@ find_defs (struct loop *loop)
df_remove_problem (df_chain);
df_process_deferred_rescans ();
df_chain_add_problem (DF_UD_CHAIN);
+ df_live_add_problem ();
+ df_live_set_all_dirty ();
df_set_flags (DF_RD_PRUNE_DEAD_DEFS);
df_analyze_loop (loop);
check_invariant_table_size ();
@@ -1629,6 +1631,7 @@ move_invariant_reg (struct loop *loop, unsigned invno)
fprintf (dump_file, "Invariant %d moved without introducing a new "
"temporary register\n", invno);
reorder_insns (inv->insn, inv->insn, BB_END (preheader));
+ df_recompute_luids (preheader);
/* If there is a REG_EQUAL note on the insn we just moved, and the
insn is in a basic block that is not always executed or the note