Skip to content

Commit fec4ac2

Browse files
committed
Check the address is defined outside vector region.
1 parent 3ecb19a commit fec4ac2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9394,7 +9394,10 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
93949394
m_VPValue(), m_VPValue())) ||
93959395
(isa<VPReplicateRecipe>(&User) &&
93969396
cast<VPReplicateRecipe>(&User)->getUnderlyingValue() ==
9397-
IntermediateStore);
9397+
IntermediateStore &&
9398+
cast<VPReplicateRecipe>(&User)
9399+
->getOperand(1)
9400+
->isDefinedOutsideVectorRegions());
93989401
});
93999402
}
94009403

0 commit comments

Comments
 (0)