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 tree-optimization/46309] optimization a==3||a==1
Date: Fri, 30 Sep 2011 15:16:00 -0000	[thread overview]
Message-ID: <bug-46309-4-EjYQKNP7jS@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-46309-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46309

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-09-30 15:00:18 UTC ---
Author: jakub
Date: Fri Sep 30 15:00:12 2011
New Revision: 179388

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179388
Log:
    PR tree-optimization/46309
    * fold-const.c (make_range, merge_ranges): Remove prototypes.
    (make_range_step): New function.
    (make_range): Use it.
    * tree.h (make_range_step): New prototypes.
    * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
    * tree-ssa-reassoc.c: Include diagnostic-core.h.
    (struct range_entry): New type.
    (init_range_entry, range_entry_cmp, update_range_test,
    optimize_range_tests): New functions.
    (reassociate_bb): Call optimize_range_tests.

    * gcc.dg/pr46309.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr46309.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c
    trunk/gcc/tree.h


  parent reply	other threads:[~2011-09-30 15:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-05  8:36 [Bug c++/46309] New: " eidletni at mail dot ru
2010-11-05  8:37 ` [Bug c++/46309] " eidletni at mail dot ru
2010-11-06 18:55 ` svfuerst at gmail dot com
2011-09-23 22:54 ` paolo.carlini at oracle dot com
2011-09-24  9:57 ` [Bug tree-optimization/46309] " jakub at gcc dot gnu.org
2011-09-30 15:16 ` jakub at gcc dot gnu.org [this message]
2011-09-30 20:19 ` paolo.carlini at oracle dot com
2011-09-30 20:28 ` jakub at gcc dot gnu.org
2011-09-30 20:48 ` paolo.carlini at oracle dot com
2011-11-23  1:55 ` pinskia at gcc dot gnu.org
2012-10-31  8:46 ` jakub at gcc dot gnu.org
2012-10-31  8:55 ` jakub at gcc dot gnu.org
2012-10-31 19:10 ` eidletni at mail dot ru
2012-10-31 22:37 ` rdsandiford at googlemail 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-46309-4-EjYQKNP7jS@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: link
Be 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).