Don't call skipModule for CFI lowering passes.

opt-bisect shouldn't skip these passes; they lower intrinsics which
no other pass can handle.

llvm-svn: 329961
This commit is contained in:
Eli Friedman 2018-04-12 22:04:11 +00:00
parent 039d248778
commit e1938cbc87
2 changed files with 0 additions and 5 deletions

View File

@ -162,9 +162,6 @@ void CrossDSOCFI::buildCFICheck(Module &M) {
} }
bool CrossDSOCFI::runOnModule(Module &M) { bool CrossDSOCFI::runOnModule(Module &M) {
if (skipModule(M))
return false;
VeryLikelyWeights = VeryLikelyWeights =
MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1); MDBuilder(M.getContext()).createBranchWeights((1U << 20) - 1, 1);
if (M.getModuleFlag("Cross-DSO CFI") == nullptr) if (M.getModuleFlag("Cross-DSO CFI") == nullptr)

View File

@ -456,8 +456,6 @@ struct LowerTypeTests : public ModulePass {
} }
bool runOnModule(Module &M) override { bool runOnModule(Module &M) override {
if (skipModule(M))
return false;
if (UseCommandLine) if (UseCommandLine)
return LowerTypeTestsModule::runForTesting(M); return LowerTypeTestsModule::runForTesting(M);
return LowerTypeTestsModule(M, ExportSummary, ImportSummary).lower(); return LowerTypeTestsModule(M, ExportSummary, ImportSummary).lower();