From 24c34f9b9b7840cd65526a48f56476932420e311 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 Jun 2018 16:25:19 -0400 Subject: [PATCH 51/61] FIXME: stray incomplete bits --- gcc/gimple-loop-interchange.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gcc/gimple-loop-interchange.cc b/gcc/gimple-loop-interchange.cc index 6f0bbd8..0410fc4 100644 --- a/gcc/gimple-loop-interchange.cc +++ b/gcc/gimple-loop-interchange.cc @@ -1556,7 +1556,21 @@ should_interchange_loops (unsigned i_idx, unsigned o_idx, ratio = innermost_loops_p ? INNER_STRIDE_RATIO : OUTER_STRIDE_RATIO; /* Do interchange if it gives better data locality behavior. */ if (wi::gtu_p (iloop_strides, wi::mul (oloop_strides, ratio))) - return true; + { +#if 0 + if (optinfo_enabled_p ()) + OPTINFO_NOTE ((gimple *)NULL) // FIXME + << "interchange gives better data locality behavior: " + << "iloop_strides: " + << decu (iloop_strides) + << " > (oloop_strides: " + << decu (oloop_strides) + << " * ratio: " + << decu (ratio) + << ")"; +#endif + return true; + } if (wi::gtu_p (iloop_strides, oloop_strides)) { /* Or it creates more invariant memory references. */ -- 1.8.5.3