public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/100473] O2 vs optimization flags Date: Fri, 07 May 2021 14:58:12 +0000 [thread overview] Message-ID: <bug-100473-4-LoespA2pKc@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100473-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100473 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |jakub at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- And git grep 'optimize > 1' gcc/config/arc/arc.c: return (optimize > 1 && !TARGET_NO_COND_EXEC); gcc/config/arc/arc.c: if (optimize > 1 && !TARGET_NO_COND_EXEC) gcc/config/i386/i386-expand.c: && optimize > 1) gcc/config/i386/i386-features.c: && TARGET_STV && TARGET_SSE2 && optimize > 1); gcc/config/mcore/mcore.c: if (optimize > 1 && blk_size > 2) gcc/config/rl78/rl78.c: if (optimize > 1) gcc/cse.c: else if (tem == 1 || optimize > 1) gcc/dce.c: return optimize > 1 && flag_dce && dbg_cnt (dce_ud); gcc/df-core.c: if (optimize > 1) gcc/early-remat.c: return optimize > 1 && NUM_POLY_INT_COEFFS > 1; gcc/ira.c: if (optimize > 1) gcc/ira.c: if (optimize > 1) gcc/tree-eh.c: if (optimize > 1) gcc/tree-ssa-sccvn.c: return flag_tree_fre != 0 && (may_iterate || optimize > 1); gcc/tree-ssa-sccvn.c: bool iterate_p = may_iterate && (optimize > 1); git grep 'optimize <= 1' gcc/df-problems.c: df_live->optional_p = (optimize <= 1); git grep 'optimize < 2' gcc/builtins.c: if (optimize < 2 || optimize_insn_for_size_p ()) gcc/cfgexpand.c: if (toplevel && optimize < 2) gcc/config/arc/arc.c: if (optimize < 2 || TARGET_NO_COND_EXEC) gcc/config/pa/pa.c: if (optimize < 2) gcc/dse.c: if (optimize < 2) gcc/expr.c: if (optimize < 2) gcc/loop-invariant.c: if (optimize < 2) gcc/tree-ssa-loop-im.c: if (optimize < 2) I think we've never claimed that -O2 stands for -O1 + specific options, similarly to how -O1 certainly is not -O0 + lots of options (even much more different, because if (optimize) is very common and is used in gating tests of whole pass sets.
next prev parent reply other threads:[~2021-05-07 14:58 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-07 14:06 [Bug c/100473] New: " stanislav.simek at siemens dot com 2021-05-07 14:42 ` [Bug c/100473] " schwab@linux-m68k.org 2021-05-07 14:58 ` jakub at gcc dot gnu.org [this message] 2021-05-07 16:00 ` [Bug middle-end/100473] " pinskia at gcc dot gnu.org 2021-05-10 7:28 ` stanislav.simek at siemens dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-100473-4-LoespA2pKc@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).