diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 69e045e64c0b54bded4ae830850f02005ae456c4..ced1aaaa13ed8275c1e3a376d1c24895287b3239 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -1730,7 +1730,10 @@ def realize_reduction(kernel, insn_id_filter=None, unknown_types_ok=True, "Empty reduction found (no inames to reduce over). " "Eliminating.") - # FIXME: return a neutral element. + # We're not supposed to reduce/sum at all. (Note how this is distinct + # from an empty reduction--there is an element here, just no inames + # to reduce over. It's rather similar to an array with () shape in + # numpy.) return expr.expr