Skip to content

Commit 70936c0

Browse files
committed
!fixup, using LV formatting.
1 parent 8d7aea3 commit 70936c0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6907,12 +6907,14 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
69076907

69086908
// The VPlan-based cost model can analysis if recipes is scalar
69096909
// recursively, but legacy cost model cannot.
6910-
if (auto *WidenMemR = dyn_cast<VPWidenMemoryRecipe>(&R);
6911-
WidenMemR &&
6912-
vputils::isSingleScalar(WidenMemR->getAddr()) !=
6913-
CostCtx.CM.Legal->isUniform(
6914-
getLoadStorePointerOperand(&WidenMemR->getIngredient()), VF))
6915-
return true;
6910+
if (auto *WidenMemR = dyn_cast<VPWidenMemoryRecipe>(&R)) {
6911+
if (WidenMemR &&
6912+
vputils::isSingleScalar(WidenMemR->getAddr()) !=
6913+
CostCtx.CM.Legal->isUniform(
6914+
getLoadStorePointerOperand(&WidenMemR->getIngredient()),
6915+
VF))
6916+
return true;
6917+
}
69166918

69176919
/// If a VPlan transform folded a recipe to one producing a single-scalar,
69186920
/// but the original instruction wasn't uniform-after-vectorization in the

0 commit comments

Comments
 (0)