From 0352abc588c71ca4c8059bd2f908066ac1e2dacb Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 12 Apr 2018 22:04:11 +0000 Subject: [PATCH] Don't call skipModule for CFI lowering passes. opt-bisect shouldn't skip these passes; they lower intrinsics which no other pass can handle. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329961 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/CrossDSOCFI.cpp | 3 --- lib/Transforms/IPO/LowerTypeTests.cpp | 2 -- 2 files changed, 5 deletions(-) diff --git a/lib/Transforms/IPO/CrossDSOCFI.cpp b/lib/Transforms/IPO/CrossDSOCFI.cpp index 886029ea58d..666f6cc37bf 100644 --- a/lib/Transforms/IPO/CrossDSOCFI.cpp +++ b/lib/Transforms/IPO/CrossDSOCFI.cpp @@ -162,9 +162,6 @@ void CrossDSOCFI::buildCFICheck(Module &M) { } bool CrossDSOCFI::runOnModule(Module &M) { - if (skipModule(M)) - return false; - VeryLikelyWeights = MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); if (M.getModuleFlag("Cross-DSO CFI") == nullptr) diff --git a/lib/Transforms/IPO/LowerTypeTests.cpp b/lib/Transforms/IPO/LowerTypeTests.cpp index 72ce332f581..b29eeeacfec 100644 --- a/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/lib/Transforms/IPO/LowerTypeTests.cpp @@ -456,8 +456,6 @@ struct LowerTypeTests : public ModulePass { } bool runOnModule(Module &M) override { - if (skipModule(M)) - return false; if (UseCommandLine) return LowerTypeTestsModule::runForTesting(M); return LowerTypeTestsModule(M, ExportSummary, ImportSummary).lower(); -- 2.11.0