File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ namespace fir {
54
54
#define GEN_PASS_DECL_OMPMAPINFOFINALIZATIONPASS
55
55
#define GEN_PASS_DECL_OMPMARKDECLARETARGETPASS
56
56
#define GEN_PASS_DECL_OMPFUNCTIONFILTERING
57
+ #define GEN_PASS_DECL_CONSTANTARGUMENTGLOBALISATIONOPT
58
+
57
59
#include " flang/Optimizer/Transforms/Passes.h.inc"
58
60
59
61
std::unique_ptr<mlir::Pass> createAffineDemotionPass ();
@@ -77,6 +79,8 @@ std::unique_ptr<mlir::Pass> createVScaleAttrPass();
77
79
std::unique_ptr<mlir::Pass>
78
80
createVScaleAttrPass (std::pair<unsigned , unsigned > vscaleAttr);
79
81
82
+ std::unique_ptr<mlir::Pass> createConstantArgumentGlobalisationPass ();
83
+
80
84
struct FunctionAttrTypes {
81
85
mlir::LLVM::framePointerKind::FramePointerKind framePointerKind =
82
86
mlir::LLVM::framePointerKind::FramePointerKind::None;
Original file line number Diff line number Diff line change @@ -288,6 +288,10 @@ inline void createDefaultFIROptimizerPassPipeline(
288
288
else
289
289
fir::addMemoryAllocationOpt (pm);
290
290
291
+ // FIR Inliner Callback
292
+ pc.invokeFIRInlinerCallback (pm, pc.OptLevel );
293
+
294
+ pm.addPass (fir::createSimplifyRegionLite ());
291
295
pm.addPass (mlir::createCSEPass ());
292
296
293
297
// Polymorphic types
You can’t perform that action at this time.
0 commit comments