[PATCH] D28404: IRGen: Add optnone attribute on function during O0
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 6 16:44:41 PST 2017
mehdi_amini marked 2 inline comments as done.
mehdi_amini added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:900
+ ShouldAddOptNone &= !D->hasAttr<AlwaysInlineAttr>();
+ if (ShouldAddOptNone) {
+ B.addAttribute(llvm::Attribute::OptimizeNone);
----------------
probinson wrote:
> This block is redundant now? The same things are added in the next if block.
Oh right! Will remove, thanks!
https://reviews.llvm.org/D28404
More information about the cfe-commits
mailing list