diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 9043baa..6327b92 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -815,11 +815,14 @@ 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, |