[llvm] 8eaf7a7 - [VPlan] Add missing ifdef after 96686796f606.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 02:44:33 PDT 2023
Author: Florian Hahn
Date: 2023-05-22T10:44:17+01:00
New Revision: 8eaf7a75febf119f946d26104147287ad32782e3
URL: https://github.com/llvm/llvm-project/commit/8eaf7a75febf119f946d26104147287ad32782e3
DIFF: https://github.com/llvm/llvm-project/commit/8eaf7a75febf119f946d26104147287ad32782e3.diff
LOG: [VPlan] Add missing ifdef after 96686796f606.
Fixes build with debug printing 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 62f5cbe21079..9c37aa995072 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");
More information about the llvm-commits
mailing list