From 7ef26e1725bca8cb4fbd28ace92cb2b764dc90d3 Mon Sep 17 00:00:00 2001 From: Tim Warburton <timwar@caam.rice.edu> Date: Tue, 25 Oct 2011 19:20:15 -0500 Subject: [PATCH] Fix iname_to_tag lookup in realize_reduction to use get(). --- loopy/schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/schedule.py b/loopy/schedule.py index 8d77d2d91..f7eb17d4a 100644 --- a/loopy/schedule.py +++ b/loopy/schedule.py @@ -38,7 +38,7 @@ def realize_reduction(kernel): ilp_inames = [iname for iname in insn.all_inames() - if isinstance(kernel.iname_to_tag[iname], IlpTag)] + if isinstance(kernel.iname_to_tag.get(iname), IlpTag)] from loopy.isl_helpers import static_max_of_pw_aff -- GitLab