diff --git a/src/pystencils/backend/transformations/loop_vectorizer.py b/src/pystencils/backend/transformations/loop_vectorizer.py index 04d7d20f05531ab9c2a8104e13b3e466cbb07d34..48b9ad0da567a6221c33c594795c8d4b6e745ea0 100644 --- a/src/pystencils/backend/transformations/loop_vectorizer.py +++ b/src/pystencils/backend/transformations/loop_vectorizer.py @@ -149,9 +149,11 @@ class LoopVectorizer: # Declare and init vector simd_init_local_reduction_vars += [ - PsDeclaration( - PsSymbolExpr(vector_symb), - PsVecBroadcast(self._lanes, PsSymbolExpr(symb)), + self._type_fold( + PsDeclaration( + PsSymbolExpr(vector_symb), + PsVecBroadcast(self._lanes, PsSymbolExpr(symb)), + ) ) ]