This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15784] fold misses binary optimization
- 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: 11 Mar 2005 04:52:57 -0000
- Subject: [Bug tree-optimization/15784] fold misses binary optimization
- References: <20040602204532.15784.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-11 04:52 -------
Subject: Bug 15784
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: law@gcc.gnu.org 2005-03-11 04:52:44
Modified files:
gcc : ChangeLog fold-const.c stmt.c
Log message:
PR tree-optimization/15784
* fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
and -1 - A to ~A.
* stmt.c (expand_case): Don't change index_type. Convert minval
to the proper type.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7782&r2=2.7783
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.540&r2=1.541
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/stmt.c.diff?cvsroot=gcc&r1=1.417&r2=1.418
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15784