Skip to content
Snippets Groups Projects
Commit 013e6546 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Broadcast reduction init val as neutral element

parent d9c3be85
No related branches found
No related tags found
1 merge request!438Reduction Support
Pipeline #78549 passed
...@@ -163,7 +163,8 @@ class LoopVectorizer: ...@@ -163,7 +163,8 @@ class LoopVectorizer:
PsDeclaration( PsDeclaration(
PsSymbolExpr(vector_symb), PsSymbolExpr(vector_symb),
PsVecBroadcast( PsVecBroadcast(
self._lanes, PsSymbolExpr(local_symbol) self._lanes,
reduction_info.init_val.clone(),
), ),
) )
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment