[llvm] a85c725 - Revert "[Utils] Fix a warning"
Joel E. Denny via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 12:54:17 PDT 2025
Author: Joel E. Denny
Date: 2025-07-31T15:54:01-04:00
New Revision: a85c725952f7eec54552c195353ff0cb6275a2e0
URL: https://github.com/llvm/llvm-project/commit/a85c725952f7eec54552c195353ff0cb6275a2e0
DIFF: https://github.com/llvm/llvm-project/commit/a85c725952f7eec54552c195353ff0cb6275a2e0.diff
LOG: Revert "[Utils] Fix a warning"
This reverts commit 3a18fe33f0763cd9276c99c276448412100f6270.
So that we can revert PR #148758.
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 6327b92922c12..9043baac7be8e 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -815,14 +815,11 @@ struct DbgLoop {
const Loop *L;
explicit DbgLoop(const Loop *L) : L(L) {}
};
-
-#ifndef NDEBUG
static inline raw_ostream &operator<<(raw_ostream &OS, DbgLoop D) {
OS << "function ";
D.L->getHeader()->getParent()->printAsOperand(OS, /*PrintType=*/false);
return OS << " " << *D.L;
}
-#endif // NDEBUG
static std::optional<unsigned> estimateLoopTripCount(Loop *L) {
// Currently we take the estimate exit count only from the loop latch,
More information about the llvm-commits
mailing list