Skip to content

Commit f62c348

Browse files
committed
Drop unneed var.
1 parent 1fcac6d commit f62c348

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6910,9 +6910,8 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
69106910
if (auto *WidenMemR = dyn_cast<VPWidenMemoryRecipe>(&R)) {
69116911
auto *AddrI = dyn_cast<Instruction>(
69126912
getLoadStorePointerOperand(&WidenMemR->getIngredient()));
6913-
if (WidenMemR && AddrI &&
6914-
vputils::isSingleScalar(WidenMemR->getAddr()) !=
6915-
CostCtx.isLegacyUniformAfterVectorization(AddrI, VF))
6913+
if (AddrI && vputils::isSingleScalar(WidenMemR->getAddr()) !=
6914+
CostCtx.isLegacyUniformAfterVectorization(AddrI, VF))
69166915
return true;
69176916
}
69186917

0 commit comments

Comments
 (0)