From 01284f7916112697fe5e251830b1a2ab14552100 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de>
Date: Tue, 16 Apr 2019 07:03:19 +0200
Subject: [PATCH] [skip ci] Always precompute the horizontal add

---
 python/dune/codegen/sumfact/symbolic.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/python/dune/codegen/sumfact/symbolic.py b/python/dune/codegen/sumfact/symbolic.py
index 61867987..6e32fb83 100644
--- a/python/dune/codegen/sumfact/symbolic.py
+++ b/python/dune/codegen/sumfact/symbolic.py
@@ -389,11 +389,7 @@ class VectorSumfactKernelOutput(SumfactKernelInterfaceBase):
         substname = "haddsubst_{}".format("_".join([i.name for i in inames]))
         subst_rule(substname, (), result)
         result = prim.Call(prim.Variable(substname), ())
-
-        # If multiple horizontal_add's are to be performed with 'result'
-        # we need to precompute the result!
-        if len(outputs) > 1:
-            transform(lp.precompute, substname)
+        transform(lp.precompute, substname)
 
         deps = frozenset()
         for o in outputs:
-- 
GitLab