[llvm] 1579fc6 - [Evaluator] Add missing LLVM_DEBUG()
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 02:55:34 PDT 2022
Author: Nikita Popov
Date: 2022-06-30T11:54:47+02:00
New Revision: 1579fc62fe4ebf6bf0be8b405d3f711a1537ebf9
URL: https://github.com/llvm/llvm-project/commit/1579fc62fe4ebf6bf0be8b405d3f711a1537ebf9
DIFF: https://github.com/llvm/llvm-project/commit/1579fc62fe4ebf6bf0be8b405d3f711a1537ebf9.diff
LOG: [Evaluator] Add missing LLVM_DEBUG()
Missed these in 41f0b6a78143776d673565cfa830849e3b468b8e, resulting
in unconditional debug output.
Added:
Modified:
llvm/lib/Transforms/Utils/Evaluator.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/Evaluator.cpp b/llvm/lib/Transforms/Utils/Evaluator.cpp
index aecf746c56a5..7b8d8553bac2 100644
--- a/llvm/lib/Transforms/Utils/Evaluator.cpp
+++ b/llvm/lib/Transforms/Utils/Evaluator.cpp
@@ -587,11 +587,11 @@ bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB,
Ops.push_back(getVal(Op));
InstResult = ConstantFoldInstOperands(&*CurInst, Ops, DL, TLI);
if (!InstResult) {
- dbgs() << "Cannot fold instruction: " << *CurInst << "\n";
+ LLVM_DEBUG(dbgs() << "Cannot fold instruction: " << *CurInst << "\n");
return false;
}
- dbgs() << "Folded instruction " << *CurInst << " to " << *InstResult
- << "\n";
+ LLVM_DEBUG(dbgs() << "Folded instruction " << *CurInst << " to "
+ << *InstResult << "\n");
}
if (!CurInst->use_empty()) {
More information about the llvm-commits
mailing list