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 592a3ba commit d51bc83Copy full SHA for d51bc83
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