[llvm] [NFC][LLVM] Namespace cleanup in LoopFuse (PR #163758)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 16 08:37:00 PDT 2025


================
@@ -445,9 +445,19 @@ struct FusionCandidateCompare {
         "No dominance relationship between these fusion candidates!");
   }
 };
+} // namespace
 
 using LoopVector = SmallVector<Loop *, 4>;
 
+#ifndef NDEBUG
----------------
CongzheUalberta wrote:

As a clean-up patch I'd prefer to see this `#ifndef NDEBUG` region that corresponds to `printLoopVector()` to be merged with the following `#ifndef NDEBUG` region that corresponds to `operator<<` and `printFusionCandidates()`, also `printLoopVector()` should be moved right before next to `printFusionCandidates()`.

https://github.com/llvm/llvm-project/pull/163758


More information about the llvm-commits mailing list