Skip to content

Commit 40b40fa

Browse files
committed
Check the address is defined outside vector region.
1 parent da4abe2 commit 40b40fa

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
@@ -9419,7 +9419,10 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
94199419
m_VPValue(), m_VPValue())) ||
94209420
(isa<VPReplicateRecipe>(&User) &&
94219421
cast<VPReplicateRecipe>(&User)->getUnderlyingValue() ==
9422-
IntermediateStore);
9422+
IntermediateStore &&
9423+
cast<VPReplicateRecipe>(&User)
9424+
->getOperand(1)
9425+
->isDefinedOutsideVectorRegions());
94239426
});
94249427
}
94259428

0 commit comments

Comments
 (0)