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

Matthias Braun via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 25 14:07:32 PDT 2017


MatzeB added a comment.

FWIW, I think this makes sense.
Moving O0 and optnone get closer seems sensible. Even though -O3 with an optnone function indeed gives you different results today.
We are basically maintaining two things for the same "do not optimize" goal.
This obviously won't make O0 and optnone being the same in todays pass managers, but it is a step in the right direction.


https://reviews.llvm.org/D28404





More information about the cfe-commits mailing list