@@ -449,15 +449,6 @@ struct FusionCandidateCompare {
449449
450450using LoopVector = SmallVector<Loop *, 4 >;
451451
452- #ifndef NDEBUG
453- static void printLoopVector (const LoopVector &LV) {
454- dbgs () << " ****************************\n " ;
455- for (const Loop *L : LV)
456- printLoop (*L, dbgs ());
457- dbgs () << " ****************************\n " ;
458- }
459- #endif
460-
461452// Set of Control Flow Equivalent (CFE) Fusion Candidates, sorted in dominance
462453// order. Thus, if FC0 comes *before* FC1 in a FusionCandidateSet, then FC0
463454// dominates FC1 and FC1 post-dominates FC0.
@@ -471,7 +462,14 @@ static void printLoopVector(const LoopVector &LV) {
471462using FusionCandidateSet = std::set<FusionCandidate, FusionCandidateCompare>;
472463using FusionCandidateCollection = SmallVector<FusionCandidateSet, 4 >;
473464
474- #if !defined(NDEBUG)
465+ #ifndef NDEBUG
466+ static void printLoopVector (const LoopVector &LV) {
467+ dbgs () << " ****************************\n " ;
468+ for (const Loop *L : LV)
469+ printLoop (*L, dbgs ());
470+ dbgs () << " ****************************\n " ;
471+ }
472+
475473static raw_ostream &operator <<(raw_ostream &OS, const FusionCandidate &FC) {
476474 if (FC.isValid ())
477475 OS << FC.Preheader ->getName ();
@@ -498,7 +496,7 @@ printFusionCandidates(const FusionCandidateCollection &FusionCandidates) {
498496 dbgs () << " ****************************\n " ;
499497 }
500498}
501- #endif
499+ #endif // NDEBUG
502500
503501namespace {
504502
0 commit comments