We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505820e commit 659e0cfCopy full SHA for 659e0cf
llvm/lib/Transforms/Vectorize/VPlanUtils.h
@@ -60,6 +60,9 @@ inline bool isUniformAfterVectorization(const VPValue *VPV) {
60
61
if (auto *Rep = dyn_cast<VPReplicateRecipe>(VPV)) {
62
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.
66
if (RegionOfR && RegionOfR->isReplicator())
67
return false;
68
return Rep->isUniform() ||
0 commit comments