Skip to content

Commit 659e0cf

Browse files
committed
!fixup add comment, thanks
1 parent 505820e commit 659e0cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ inline bool isUniformAfterVectorization(const VPValue *VPV) {
6060

6161
if (auto *Rep = dyn_cast<VPReplicateRecipe>(VPV)) {
6262
const VPRegionBlock *RegionOfR = Rep->getParent()->getParent();
63+
// Don't consider recipes in replicate regions as uniform yet; their first
64+
// lane cannot be accessed when executing the replicate region for other
65+
// lanes.
6366
if (RegionOfR && RegionOfR->isReplicator())
6467
return false;
6568
return Rep->isUniform() ||

0 commit comments

Comments
 (0)