This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/9707] Unnecessary range test in switches with less than 4 cases
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2004 16:17:05 -0000
- Subject: [Bug middle-end/9707] Unnecessary range test in switches with less than 4 cases
- References: <20030214164600.9707.gertom@rgai.hu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-25 16:16 -------
Subject: Bug 9707
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: kazu@gcc.gnu.org 2004-03-25 16:16:43
Modified files:
gcc : ChangeLog stmt.c
Log message:
PR optimization/9707.
* stmt.c (emit_case_nodes): Emit equality comparisons instead
of recursing if both children are single-valued cases with no
children.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3288&r2=2.3289
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/stmt.c.diff?cvsroot=gcc&r1=1.350&r2=1.351
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9707