[llvm] [LLVM] Add new attribute `optdebug` to optimize for debugging (PR #66632)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 03:29:57 PDT 2023
================
@@ -2325,6 +2325,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
B.addAttribute(llvm::Attribute::Naked);
// OptimizeNone wins over OptimizeForSize and MinSize.
+ F->removeFnAttr(llvm::Attribute::OptimizeForDebugging);
----------------
SLTozer wrote:
Topic posted: https://discourse.llvm.org/t/rfc-new-function-attribute-optdebug-for-prioritizing-debuggability-in-llvm-passes/73552
https://github.com/llvm/llvm-project/pull/66632
More information about the llvm-commits
mailing list