From de300e15a4cddc2bb28e1cda4a872b46b4c34db1 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 17 Oct 2015 20:14:16 -0500
Subject: [PATCH] add_prefetch: Fix expand_subst call that gets rid of
 temporary substitution rule

---
 loopy/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loopy/__init__.py b/loopy/__init__.py
index ff3a004d9..7073108b2 100644
--- a/loopy/__init__.py
+++ b/loopy/__init__.py
@@ -1159,7 +1159,7 @@ def add_prefetch(kernel, var_name, sweep_inames=[], dim_arg_names=None,
     # If the rule survived past precompute() (i.e. some accesses fell outside
     # the footprint), get rid of it before moving on.
     if rule_name in new_kernel.substitutions:
-        return expand_subst(new_kernel, "id:"+rule_name)
+        return expand_subst(new_kernel, "... > id:"+rule_name)
     else:
         return new_kernel
 
-- 
GitLab