From 39c59111d8361964ed0e70e651c02b8fb08275bd Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 Jun 2018 16:25:19 -0400 Subject: [PATCH 25/46] 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 23e258f..79f2519 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