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.
2 parents e94cc49 + d51bc83 commit dc7aa6fCopy full SHA for dc7aa6f
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -2203,8 +2203,8 @@ void VPlanTransforms::materializeBroadcasts(VPlan &Plan) {
2203
for (VPValue *VPV : VPValues) {
2204
if (all_of(VPV->users(),
2205
[VPV](VPUser *U) { return U->usesScalars(VPV); }) ||
2206
- (VPV->isLiveIn() &&
2207
- (!VPV->getLiveInIRValue() || isa<Constant>(VPV->getLiveInIRValue()))))
+ (VPV->isLiveIn() && VPV->getLiveInIRValue() &&
+ isa<Constant>(VPV->getLiveInIRValue())))
2208
continue;
2209
2210
// Add explicit broadcast at the insert point that dominates all users.
0 commit comments