[flang-commits] [flang] Pass to add frame pointer attribute (PR #74598)

via flang-commits flang-commits at lists.llvm.org
Wed Dec 6 08:21:11 PST 2023


================
@@ -311,6 +311,10 @@ inline void createDefaultFIRCodeGenPassPipeline(
   if (config.VScaleMin != 0)
     pm.addPass(fir::createVScaleAttrPass({config.VScaleMin, config.VScaleMax}));
 
+  fir::FunctionAttrTypes functionAttrs;
+  functionAttrs.framePointerKind = config.FramePointerKind;
+  pm.addPass(fir::createFunctionAttrPass(functionAttrs));
----------------
jeanPerier wrote:

Can the pass be skipped here if the option is equivalent to not having specified any attribute? It seems a loss of time to go over all the function of the files to do nothing (some Fortran code have a lot of small functions in one big file).

https://github.com/llvm/llvm-project/pull/74598


More information about the flang-commits mailing list