[PATCH] D53431: clang appears not to respect __attribute__((noinline))

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 5 01:05:40 PST 2018


chandlerc added a comment.

In D53431#1319789 <https://reviews.llvm.org/D53431#1319789>, @chrib wrote:

> actually optnone is not well adapted here, since it demotes local optimizations on the functions, but we still want to keep scalar or target optimisations to be applied, but not interprocedural optimisations.
>
> so maybe a new attribute , e.g __((noglobalopt)__ would be useful to exclude an object from all global optimizations (dfe, dve, global constant prop, ...). Do you think it is worth  to make a proposal ?


I do not think we can realistically support slicing and dicing optimizations in this way. We allow turning them off to help bisect problems and work around them, but IMO this is going too far.


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

https://reviews.llvm.org/D53431





More information about the llvm-commits mailing list