9c0acc42e8
Try 2 to merge 4fbd1d6c87
.
Flang algebraic simplification pass will run algebraic simplification
rewrite patterns for Math/Complex/etc. dialects. It is enabled
under opt-for-speed optimization levels (i.e. for O1/O2/O3; Os/Oz will not
enable it).
With this change the FIR/MLIR optimization pipeline becomes affected
by the -O* optimization level switches. Until now these switches
only affected the middle-end and back-end.
Differential Revision: https://reviews.llvm.org/D130035
24 lines
381 B
CMake
24 lines
381 B
CMake
|
|
add_flang_tool(bbc bbc.cpp
|
|
DEPENDS
|
|
FIROptCodeGenPassIncGen
|
|
)
|
|
|
|
llvm_update_compile_flags(bbc)
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
target_link_libraries(bbc PRIVATE
|
|
FIRDialect
|
|
FIRSupport
|
|
FIRTransforms
|
|
FIRBuilder
|
|
${dialect_libs}
|
|
MLIRAffineToStandard
|
|
MLIRSCFToControlFlow
|
|
FortranCommon
|
|
FortranParser
|
|
FortranEvaluate
|
|
FortranSemantics
|
|
FortranLower
|
|
LLVMPasses
|
|
)
|