[llvm] 1ec1d25 - [MachineOutliner] Add skipModule call for opt-bisect-limit. (#128836)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 26 08:28:48 PST 2025


Author: Craig Topper
Date: 2025-02-26T08:28:45-08:00
New Revision: 1ec1d25f691b92fb6aec8d0564139a5ba6c721b7

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

LOG: [MachineOutliner] Add skipModule call for opt-bisect-limit. (#128836)

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineOutliner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp
index e3fe9494acef8..ba125d9fee566 100644
--- a/llvm/lib/CodeGen/MachineOutliner.cpp
+++ b/llvm/lib/CodeGen/MachineOutliner.cpp
@@ -1375,6 +1375,9 @@ void MachineOutliner::emitOutlinedHashTree(Module &M) {
 }
 
 bool MachineOutliner::runOnModule(Module &M) {
+  if (skipModule(M))
+    return false;
+
   // Check if there's anything in the module. If it's empty, then there's
   // nothing to outline.
   if (M.empty())


        


More information about the llvm-commits mailing list