[PATCH] D24998: Add a new optimization option -Og

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 10:00:49 PDT 2016


probinson added a comment.

As Renato points out, this addresses the user experience of tripping over the lack of -Og, however it does not really address the intent of PR20765 which is to provide a mode of optimizations that don't particularly interfere with debugging.
Eventually someone needs to take on the project of "proper -Og" which might or might not result in -Og still matching -O1.
I am not opposed to starting out this way, but don't close the PR.

If we later get user complaints about how -Og interferes with debugging, well, then we'll have actual use-cases to work from, which is extremely helpful for this sort of optimization tuning.



> init.c:208
>  //
> +// RUN: %clang_cc1 -Og -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix O1 %s
> +//

check-prefix https://reviews.llvm.org/owners/package/1/?  Then you don't need the Og: and Og-NOT: lines.

https://reviews.llvm.org/D24998





More information about the cfe-commits mailing list