[llvm] 41e792d - [CostModel] Change printer pass wording to work with update_analyze_test_checks.py

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 10:11:08 PST 2022


Author: Arthur Eubanks
Date: 2022-03-03T10:10:48-08:00
New Revision: 41e792d725078d4c773fa5c38ebcc36f9e48d589

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

LOG: [CostModel] Change printer pass wording to work with update_analyze_test_checks.py

update_analyze_test_checks.py looks for very specific wording, update
the printer pass to match the legacy `-analyze -cost-model` wording.

Added: 
    

Modified: 
    llvm/lib/Analysis/CostModel.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp
index e7b618cfed098..52e424ae324bf 100644
--- a/llvm/lib/Analysis/CostModel.cpp
+++ b/llvm/lib/Analysis/CostModel.cpp
@@ -117,7 +117,7 @@ void CostModelAnalysis::print(raw_ostream &OS, const Module*) const {
 PreservedAnalyses CostModelPrinterPass::run(Function &F,
                                             FunctionAnalysisManager &AM) {
   auto &TTI = AM.getResult<TargetIRAnalysis>(F);
-  OS << "Cost Model for function '" << F.getName() << "'\n";
+  OS << "Printing analysis 'Cost Model Analysis' for function '" << F.getName() << "':\n";
   for (BasicBlock &B : F) {
     for (Instruction &Inst : B) {
       // TODO: Use a pass parameter instead of cl::opt CostKind to determine


        


More information about the llvm-commits mailing list