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:
parent
039d248778
commit
e1938cbc87
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue