[llvm] a3a478b - [Inliner] Add debug message for history skip (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 06:12:07 PST 2021


Author: Nikita Popov
Date: 2021-12-09T15:11:56+01:00
New Revision: a3a478be40533b2cfa236de0859c9c8b50695e7a

URL: https://github.com/llvm/llvm-project/commit/a3a478be40533b2cfa236de0859c9c8b50695e7a
DIFF: https://github.com/llvm/llvm-project/commit/a3a478be40533b2cfa236de0859c9c8b50695e7a.diff

LOG: [Inliner] Add debug message for history skip (NFC)

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/Inliner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 992c2b292e1e9..4e3689f095363 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -856,6 +856,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
 
       if (InlineHistoryID != -1 &&
           inlineHistoryIncludes(&Callee, InlineHistoryID, InlineHistory)) {
+        LLVM_DEBUG(dbgs() << "Skipping inlining due to history: "
+                          << F.getName() << " -> " << Callee.getName() << "\n");
         setInlineRemark(*CB, "recursive");
         continue;
       }


        


More information about the llvm-commits mailing list