From 6cb1aaceac7f04620fc07bf9f640437c3d5dba50 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 29 Aug 2017 17:35:20 -0500 Subject: [PATCH] Fix single-trip check in sequential loop generation (Fixes #87 on gitlab) --- loopy/codegen/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/codegen/loop.py b/loopy/codegen/loop.py index 0110a0609..941d59309 100644 --- a/loopy/codegen/loop.py +++ b/loopy/codegen/loop.py @@ -446,7 +446,7 @@ def generate_sequential_loop_dim_code(codegen_state, sched_index): from loopy.symbolic import pw_aff_to_expr - if ubound.is_equal(lbound): + if impl_ubound.is_equal(impl_lbound): # single-trip, generate just a variable assignment, not a loop inner = merge_codegen_results(codegen_state, [ astb.emit_initializer( -- GitLab