From da472c1b3bc8b2289f93cacaf75472556a3d85cd Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 8 Dec 2017 11:24:36 +0000 Subject: [PATCH] gimple-loop-interchange.cc (tree_loop_interchange::interchange): Provide -fopt-info-loop feedback when we interchange in a nest. 2017-12-08 Richard Biener * gimple-loop-interchange.cc (tree_loop_interchange::interchange): Provide -fopt-info-loop feedback when we interchange in a nest. From-SVN: r255505 --- gcc/ChangeLog | 5 +++++ gcc/gimple-loop-interchange.cc | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d911f6f9060..e8aa3a13925 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-12-08 Richard Biener + + * gimple-loop-interchange.cc (tree_loop_interchange::interchange): + Provide -fopt-info-loop feedback when we interchange in a nest. + 2017-06-08 Richard Earnshaw * config/arm/driver-arm.c (arm_cpu_table): Use fp-capable product names diff --git a/gcc/gimple-loop-interchange.cc b/gcc/gimple-loop-interchange.cc index 6554a42e1fb..3f7c54f5971 100644 --- a/gcc/gimple-loop-interchange.cc +++ b/gcc/gimple-loop-interchange.cc @@ -1550,6 +1550,7 @@ bool tree_loop_interchange::interchange (vec datarefs, vec ddrs) { + location_t loc = find_loop_location (m_loop_nest[0]); bool changed_p = false; /* In each iteration we try to interchange I-th loop with (I+1)-th loop. The overall effect is to push inner loop to outermost level in whole @@ -1597,8 +1598,12 @@ tree_loop_interchange::interchange (vec datarefs, oloop.m_loop->num, iloop.m_loop->num); } } - simple_dce_from_worklist (m_dce_seeds); + + if (changed_p) + dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc, + "loops interchanged in loop nest\n"); + return changed_p; } -- 2.30.2