diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 2b6d97c38a12b47e5b4653297c18b24c40ed938b..0d8e771954cf26cc11747e745946389420fa5e1b 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -539,7 +539,7 @@ def realize_reduction(kernel, insn_id_filter=None, unknown_types_ok=True): new_insn_add_depends_on.add(prev_id) new_insn_add_no_sync_with.add((prev_id, "any")) - new_insn_add_within_inames.add(stage_exec_iname or base_exec_iname) + new_insn_add_within_inames.add(base_exec_iname or stage_exec_iname) if nresults == 1: assert len(acc_vars) == 1