[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 10 12:23:44 PDT 2022


xbolva00 added a comment.

In D126984#3574071 <https://reviews.llvm.org/D126984#3574071>, @xbolva00 wrote:

> I agree with @aeubanks , this feature requires major changes to pass manager and I see no value to land this currently.
>
> I see that somebody may prefer “opt for size”, but this is exposed via “minsize” attribute so I see no strong need for optimize(“-Os”)

Hmm.. We expose minsize attribute in C, (like -Oz), but "optsize" is not exposed (like -Os). I will try to create a patch for exposing it.


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