[PATCH] D28404: IRGen: Add optnone attribute on function during O0

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 10 11:38:40 PST 2017

mehdi_amini added a comment.

In https://reviews.llvm.org/D28404#641597, @probinson wrote:

> In https://reviews.llvm.org/D28404#641557, @mehdi_amini wrote:
> > As I stand right now, there hasn't been any correction. 
> >  I still consider the fact that `optnone` wouldn't produce the "same" result (modulo corner cases around `merging global variables` for instance) as O0 a bug that need to be fixed.
> Why?

Why not? What's the alternative?
If we want to support `-O0 -flto` and `optnone` it the way to convey this to the optimizer, I don't see the alternative.


More information about the cfe-commits mailing list