We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f714885 commit 4a71adeCopy full SHA for 4a71ade
llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -815,11 +815,14 @@ struct DbgLoop {
815
const Loop *L;
816
explicit DbgLoop(const Loop *L) : L(L) {}
817
};
818
+
819
+#ifndef NDEBUG
820
static inline raw_ostream &operator<<(raw_ostream &OS, DbgLoop D) {
821
OS << "function ";
822
D.L->getHeader()->getParent()->printAsOperand(OS, /*PrintType=*/false);
823
return OS << " " << *D.L;
824
}
825
+#endif // NDEBUG
826
827
static std::optional<unsigned> estimateLoopTripCount(Loop *L) {
828
// Currently we take the estimate exit count only from the loop latch,
0 commit comments