[llvm] [LoopInterchange] Defer CacheCost calculation until needed (PR #146874)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 05:04:11 PDT 2025
================
@@ -407,6 +407,33 @@ class LoopInterchangeLegality {
SmallVector<PHINode *, 8> InnerLoopInductions;
};
+/// Manages information utilized by the profitability check for cache. The main
+/// purpose of this class is to delay the computation of CacheCost until it is
+/// actually needed.
+class LoopInterchangeCacheCostManager {
----------------
kasuga-fj wrote:
I also thought this wasn’t a good name. Changed to `CacheCostManager`, thanks.
https://github.com/llvm/llvm-project/pull/146874
More information about the llvm-commits
mailing list