@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3. If not see
#include "gimple-fold.h"
#include "tree-scalar-evolution.h"
#include "tree-ssa-loop-niter.h"
+#include "optinfo.h"
/* TODO: Support for predicated code motion. I.e.
@@ -1125,6 +1126,12 @@ move_computations_worker (basic_block bb)
fprintf (dump_file, "(cost %u) out of loop %d.\n\n",
cost, level->num);
}
+ /* FIXME. */
+ if (optinfo_enabled_p ())
+ OPTINFO_SUCCESS (stmt)
+ << "moving PHI node "
+ << stmt
+ << optinfo_printf (" (cost %u) out of loop %d", cost, level->num);
if (gimple_phi_num_args (stmt) == 1)
{
@@ -1194,6 +1201,12 @@ move_computations_worker (basic_block bb)
fprintf (dump_file, "(cost %u) out of loop %d.\n\n",
cost, level->num);
}
+ /* FIXME. */
+ if (optinfo_enabled_p ())
+ OPTINFO_SUCCESS (stmt)
+ << "moving statement "
+ << stmt
+ << optinfo_printf (" (cost %u) out of loop %d", cost, level->num);
e = loop_preheader_edge (level);
gcc_assert (!gimple_vdef (stmt));