aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny.ornl@gmail.com>2025-07-31 15:51:03 -0400
committerJoel E. Denny <jdenny.ornl@gmail.com>2025-07-31 15:54:01 -0400
commita85c725952f7eec54552c195353ff0cb6275a2e0 (patch)
treeced3788f22771b32de9fc037d02fd4fd49892721 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentb383efc3e3e18b57e1a13bd59aef4b5964410321 (diff)
downloadllvm-a85c725952f7eec54552c195353ff0cb6275a2e0.zip
llvm-a85c725952f7eec54552c195353ff0cb6275a2e0.tar.gz
llvm-a85c725952f7eec54552c195353ff0cb6275a2e0.tar.bz2
Revert "[Utils] Fix a warning"
This reverts commit 3a18fe33f0763cd9276c99c276448412100f6270. So that we can revert PR #148758.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 6327b92..9043baa 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,