[llvm] df016a9 - [VPlan] Move shouldPack outside of DEBUG ifdef.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 02:54:12 PST 2023


Author: Florian Hahn
Date: 2023-02-20T10:53:45Z
New Revision: df016a9525e5722dfd1e1e1632cec3ed7b33bc8a

URL: https://github.com/llvm/llvm-project/commit/df016a9525e5722dfd1e1e1632cec3ed7b33bc8a
DIFF: https://github.com/llvm/llvm-project/commit/df016a9525e5722dfd1e1e1632cec3ed7b33bc8a.diff

LOG: [VPlan] Move shouldPack outside of DEBUG ifdef.

This fixes a build failure with assertions disabled.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index eb79a3ef1cc8..0e5dee7b89ac 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -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 ");


        


More information about the llvm-commits mailing list