OSDN Git Service

2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2009 05:00:38 +0000 (05:00 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 2009 05:00:38 +0000 (05:00 +0000)
* graphite-blocking.c (pbb_do_strip_mine): Use
PARAM_LOOP_BLOCK_TILE_SIZE.
* params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Declared.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154574 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog.graphite
gcc/graphite-blocking.c
gcc/params.def

index 382dcba..95068fe 100644 (file)
@@ -1,5 +1,10 @@
 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * graphite-blocking.c (pbb_do_strip_mine): Use
+       PARAM_LOOP_BLOCK_TILE_SIZE.
+
+2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
+
        * graphite-poly.c (dot_lst_1): New.
        (dot_lst): New.
        * graphite-poly.h (dot_lst): Declared.
index 80a991c..9bd793b 100644 (file)
@@ -202,7 +202,7 @@ static bool
 pbb_do_strip_mine (poly_bb_p pbb)
 {
   graphite_dim_t s_dim;
-  int stride = 64;
+  int stride = PARAM_VALUE (PARAM_LOOP_BLOCK_TILE_SIZE);
   bool transform_done = false;
 
   for (s_dim = 0; s_dim < pbb_nb_dynamic_scattering_transform (pbb); s_dim++)
index 8d1585f..db9b75a 100644 (file)
@@ -733,6 +733,13 @@ DEFPARAM (PARAM_SWITCH_CONVERSION_BRANCH_RATIO,
          "a switch conversion to take place",
          8, 1, 0)
 
+/* Size of tiles when doing loop blocking.  */
+
+DEFPARAM (PARAM_LOOP_BLOCK_TILE_SIZE,
+         "loop-block-tile-size",
+         "size of tiles for loop blocking",
+         51, 0, 0)
+
 /* Avoid doing loop invariant motion on very large loops.  */
 
 DEFPARAM (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,