[PATCH] D141307: Add -f[no-]loop-versioning option

Mats Petersson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 8 07:41:52 PST 2023


Leporacanthicus marked an inline comment as done.
Leporacanthicus added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Flang.cpp:69
+  Arg *loopVersioning =
+      Args.getLastArg(options::OPT_Ofast, options::OPT_floop_versioning,
+                      options::OPT_fno_loop_versioning);
----------------
tblah wrote:
> Does GFortran only enable this with -Ofast? I would have thought this would be an -On thing because it doesn't impact precision.
No, good point.


================
Comment at: flang/include/flang/Frontend/CodeGenOptions.def:27
 
+CODEGENOPT(LoopVersioning, 1, 0) ///< PIC level of the LLVM module.
 CODEGENOPT(PICLevel, 2, 0) ///< PIC level of the LLVM module.
----------------
tblah wrote:
> nit: comment
Darn, missed fixing this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141307/new/

https://reviews.llvm.org/D141307



More information about the cfe-commits mailing list