public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/10520] induction variable analysis not used to eliminate comparisons Date: Wed, 05 Jan 2022 23:45:09 +0000 [thread overview] Message-ID: <bug-10520-4-ZELErjG8oG@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-10520-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10520 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm, shouldn't we convert: _24 = MAX_EXPR <n_in_31, n_out_32>; if (_24 < _tmp0_27(D)) goto <bb 4>; [94.50%] else goto <bb 5>; [5.50%] <bb 4> [local count: 906139990]: _25 = MAX_EXPR <n_in1_33, n_out1_34>; if (_25 < _tmp0_27(D)) goto <bb 3>; [94.50%] else goto <bb 5>; [5.50%] Which is: if (MAX_EXPR <n_in_31, n_out_32> < _tmp0_27 && MAX_EXPR <n_in1_33, n_out1_34> < _tmp0_27) goto 3 else goto 5 Into: if (MAX_EXPR<MAX_EXPR <n_in_31, n_out_32>, MAX_EXPR <n_in1_33, n_out1_34> > < _tmp0_27) goto 3 else goto 5 Also? To simplify things a little more?
next prev parent reply other threads:[~2022-01-05 23:45 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-10520-4@http.gcc.gnu.org/bugzilla/> 2014-03-13 11:05 ` rguenth at gcc dot gnu.org 2022-01-05 23:39 ` pinskia at gcc dot gnu.org 2022-01-05 23:45 ` pinskia at gcc dot gnu.org [this message] 2023-02-18 4:10 ` pinskia at gcc dot gnu.org [not found] <20030428130601.10520.bsamwel@xs4all.nl> 2004-08-09 2:07 ` pinskia at gcc dot gnu dot org
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-10520-4-ZELErjG8oG@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).