[PATCH] D126984: [clang] Add support for optimize function attribute

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 14:29:47 PDT 2022


aeubanks added inline comments.


================
Comment at: clang/include/clang/Basic/AttrDocs.td:3469
+support the GCC semantics. Optimization levels `-O1` through `-O4` are
+ignored. Only "-O0", "-Oz", "-Os", and "-Ofast" are supported.
+
----------------
something about `optimize(-Os)` still depending on the file's overall optimization level (e.g.  `clang -O0` won't do anything) would be good


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126984



More information about the cfe-commits mailing list