Skip to content

Commit

Permalink
Check the address is defined outside vector region.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mel-Chen committed Sep 10, 2024
1 parent 8274b71 commit 206be4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9422,7 +9422,10 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
m_VPValue(), m_VPValue())) ||
(isa<VPReplicateRecipe>(&User) &&
cast<VPReplicateRecipe>(&User)->getUnderlyingValue() ==
IntermediateStore);
IntermediateStore &&
cast<VPReplicateRecipe>(&User)
->getOperand(1)
->isDefinedOutsideVectorRegions());
});
}

Expand Down

0 comments on commit 206be4f

Please sign in to comment.