diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-02-26 08:28:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 08:28:45 -0800 |
commit | 1ec1d25f691b92fb6aec8d0564139a5ba6c721b7 (patch) | |
tree | 7bb900b3983565b54a5c14a6f9ecf5af3176af1b /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | 15ee9d91fbb55a507a8f0bce7d3d66a825c6ec30 (diff) | |
download | llvm-1ec1d25f691b92fb6aec8d0564139a5ba6c721b7.zip llvm-1ec1d25f691b92fb6aec8d0564139a5ba6c721b7.tar.gz llvm-1ec1d25f691b92fb6aec8d0564139a5ba6c721b7.tar.bz2 |
[MachineOutliner] Add skipModule call for opt-bisect-limit. (#128836)
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index e3fe949..ba125d9 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()) |