From 8eaf7a75febf119f946d26104147287ad32782e3 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 22 May 2023 10:44:17 +0100 Subject: [PATCH] [VPlan] Add missing ifdef after 96686796f606. Fixes build with debug printing disabled. --- llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp index 62f5cbe..9c37aa9 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp @@ -169,6 +169,7 @@ void VPLiveOut::fixPhi(VPlan &Plan, VPTransformState &State) { State.Builder.GetInsertBlock()); } +#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void VPLiveOut::print(raw_ostream &O, VPSlotTracker &SlotTracker) const { O << "Live-out "; getPhi()->printAsOperand(O); @@ -176,6 +177,7 @@ void VPLiveOut::print(raw_ostream &O, VPSlotTracker &SlotTracker) const { getOperand(0)->printAsOperand(O, SlotTracker); O << "\n"; } +#endif void VPRecipeBase::insertBefore(VPRecipeBase *InsertPos) { assert(!Parent && "Recipe already in some VPBasicBlock"); -- 2.7.4