[llvm] b7d0955 - Revert "[MachineBlockPlacementStats] Add check for `-filter-print-funcs` option to machine-block-placement stats."

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 21:57:30 PDT 2022


Author: Mingming Liu
Date: 2022-06-16T21:56:08-07:00
New Revision: b7d09557f6efcf47a905a0e12edf63162dd5e85f

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

LOG: Revert "[MachineBlockPlacementStats] Add check for `-filter-print-funcs` option to machine-block-placement stats."

This reverts commit 46d45df4516e9a5bc43460429cd02cd04a85db1a. Going to
add differential revision link to commit message and re-commit.

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineBlockPlacement.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 4cc84f22bdde..19de90a94007 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -50,7 +50,6 @@
 #include "llvm/CodeGen/TargetSubtargetInfo.h"
 #include "llvm/IR/DebugLoc.h"
 #include "llvm/IR/Function.h"
-#include "llvm/IR/PrintPasses.h"
 #include "llvm/InitializePasses.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Allocator.h"
@@ -3660,9 +3659,6 @@ bool MachineBlockPlacementStats::runOnMachineFunction(MachineFunction &F) {
   if (std::next(F.begin()) == F.end())
     return false;
 
-  if (!isFunctionInPrintList(F.getName()))
-    return false;
-
   MBPI = &getAnalysis<MachineBranchProbabilityInfo>();
   MBFI = &getAnalysis<MachineBlockFrequencyInfo>();
 


        


More information about the llvm-commits mailing list