[llvm] acbefbf - [VPlan] Guard code to dump instructions after d9361bfbe2ce.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 02:30:02 PST 2021
Author: Florian Hahn
Date: 2021-11-09T10:29:05Z
New Revision: acbefbf19f6c41854cca2e7df6507b345c502ec6
URL: https://github.com/llvm/llvm-project/commit/acbefbf19f6c41854cca2e7df6507b345c502ec6
DIFF: https://github.com/llvm/llvm-project/commit/acbefbf19f6c41854cca2e7df6507b345c502ec6.diff
LOG: [VPlan] Guard code to dump instructions after d9361bfbe2ce.
This should fix build failures when built without assertions enabled,
e.g.
https://lab.llvm.org/buildbot/#/builders/205/builds/172
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
index 3091527915ec..6d6ea4eb30f1 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
@@ -143,10 +143,14 @@ bool VPlanVerifier::verifyPlanIsValid(const VPlan &Plan) {
while (RecipeI != End) {
if (RecipeI->isPhi() && !isa<VPBlendRecipe>(&*RecipeI)) {
- errs() << "Found phi-like recipe after non-phi recipe:";
+ errs() << "Found phi-like recipe after non-phi recipe";
+
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ errs() << ": ";
RecipeI->dump();
errs() << "after\n";
std::prev(RecipeI)->dump();
+#endif
return false;
}
RecipeI++;
More information about the llvm-commits
mailing list