[VPlan] Move shouldPack outside of DEBUG ifdef.

This fixes a build failure with assertions disabled.
This commit is contained in:
Florian Hahn 2023-02-20 10:53:45 +00:00
parent a8cd35c3b7
commit df016a9525
No known key found for this signature in database
GPG Key ID: CF59919C6547A668

View File

@ -919,6 +919,7 @@ void VPReductionRecipe::print(raw_ostream &O, const Twine &Indent,
O << " (with final reduction value stored in invariant address sank "
"outside of loop)";
}
#endif
bool VPReplicateRecipe::shouldPack() const {
// Find if the recipe is used by a widened recipe via an intervening
@ -930,6 +931,8 @@ bool VPReplicateRecipe::shouldPack() const {
return false;
});
}
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void VPReplicateRecipe::print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const {
O << Indent << (IsUniform ? "CLONE " : "REPLICATE ");