From 16a6e80d32e7ff12e151fd75ec6f2905903620df Mon Sep 17 00:00:00 2001 From: zy69guqi <richard.angersbach@fau.de> Date: Thu, 20 Mar 2025 17:11:13 +0100 Subject: [PATCH] Add missing type fold for loop vectorizer again --- src/pystencils/backend/transformations/loop_vectorizer.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pystencils/backend/transformations/loop_vectorizer.py b/src/pystencils/backend/transformations/loop_vectorizer.py index 04d7d20f0..48b9ad0da 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)), + ) ) ] -- GitLab