[llvm] 5568990 - [VPlan] Move ::isCanonical outside ifdef.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 21 01:45:15 PST 2022
Author: Florian Hahn
Date: 2022-01-21T09:44:31Z
New Revision: 55689904d2e5afcc5309f7234d6369307ee305d0
URL: https://github.com/llvm/llvm-project/commit/55689904d2e5afcc5309f7234d6369307ee305d0
DIFF: https://github.com/llvm/llvm-project/commit/55689904d2e5afcc5309f7234d6369307ee305d0.diff
LOG: [VPlan] Move ::isCanonical outside ifdef.
This fixes a build failure with assertions disabled.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 0ec236139059..a96c122db2a9 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -1262,6 +1262,7 @@ void VPWidenIntOrFpInductionRecipe::print(raw_ostream &O, const Twine &Indent,
} else
O << " " << VPlanIngredient(IV);
}
+#endif
bool VPWidenIntOrFpInductionRecipe::isCanonical() const {
auto *StartC = dyn_cast<ConstantInt>(getStartValue()->getLiveInIRValue());
@@ -1269,6 +1270,7 @@ bool VPWidenIntOrFpInductionRecipe::isCanonical() const {
return StartC && StartC->isZero() && StepC && StepC->isOne();
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void VPWidenGEPRecipe::print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const {
O << Indent << "WIDEN-GEP ";
More information about the llvm-commits
mailing list