Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/tools/bbc/bbc.cpp
Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | if (passPipeline.hasAnyOccurrences()) { | ||||
} | } | ||||
printModule(mlirModule, out); | printModule(mlirModule, out); | ||||
return mlir::success(); | return mlir::success(); | ||||
} else { | } else { | ||||
// run the default canned pipeline | // run the default canned pipeline | ||||
pm.addPass(std::make_unique<Fortran::lower::VerifierPass>()); | pm.addPass(std::make_unique<Fortran::lower::VerifierPass>()); | ||||
// Add O2 optimizer pass pipeline. | // Add O2 optimizer pass pipeline. | ||||
fir::createDefaultFIROptimizerPassPipeline(pm, llvm::OptimizationLevel::O2); | fir::createDefaultFIROptimizerPassPipeline(pm, false, | ||||
awarzynski: Similar suggestion below. | |||||
llvm::OptimizationLevel::O2); | |||||
} | } | ||||
if (mlir::succeeded(pm.run(mlirModule))) { | if (mlir::succeeded(pm.run(mlirModule))) { | ||||
// Emit MLIR and do not lower to LLVM IR. | // Emit MLIR and do not lower to LLVM IR. | ||||
printModule(mlirModule, out); | printModule(mlirModule, out); | ||||
return mlir::success(); | return mlir::success(); | ||||
} | } | ||||
// Something went wrong. Try to dump the MLIR module. | // Something went wrong. Try to dump the MLIR module. | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Similar suggestion below.