Skip to content

Commit df016a9

Browse files
committed
[VPlan] Move shouldPack outside of DEBUG ifdef.
This fixes a build failure with assertions disabled.
1 parent a8cd35c commit df016a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ void VPReductionRecipe::print(raw_ostream &O, const Twine &Indent,
919919
O << " (with final reduction value stored in invariant address sank "
920920
"outside of loop)";
921921
}
922+
#endif
922923

923924
bool VPReplicateRecipe::shouldPack() const {
924925
// Find if the recipe is used by a widened recipe via an intervening
@@ -930,6 +931,8 @@ bool VPReplicateRecipe::shouldPack() const {
930931
return false;
931932
});
932933
}
934+
935+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
933936
void VPReplicateRecipe::print(raw_ostream &O, const Twine &Indent,
934937
VPSlotTracker &SlotTracker) const {
935938
O << Indent << (IsUniform ? "CLONE " : "REPLICATE ");

0 commit comments

Comments
 (0)