[PATCH] D125719: [Attribute] Add attribute NeverOptimizeNone

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 16 15:13:40 PDT 2022


arsenm added inline comments.


================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:1934
       !F->hasFnAttribute(llvm::Attribute::AlwaysInline)) {
     B.addAttribute(llvm::Attribute::OptimizeNone);
 
----------------
I still think adding optnone to everything at -O0 is a bad idea in the first place, and the optimization level should not be encoded in the IR


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125719



More information about the cfe-commits mailing list