From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10273 invoked by alias); 10 Aug 2005 09:24:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9050 invoked by uid 48); 10 Aug 2005 09:23:07 -0000 Date: Wed, 10 Aug 2005 09:24:00 -0000 Message-ID: <20050810092307.9049.qmail@sourceware.org> From: "rguenth at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050809030649.23294.pinskia@gcc.gnu.org> References: <20050809030649.23294.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/23294] fold does not fold a*C+a to a*(C+1) or a*C-a to a*(C-1) X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01075.txt.bz2 List-Id: ------- Additional Comments From rguenth at gcc dot gnu dot org 2005-08-10 09:23 ------- I believe we can only do so for -fwrapv (but we don't) or for unsigned (which we also don't do). I may look at this somewhen in the future. We also don't canonicalize int f(int a) { return a + a + a; } which I believe we did at some time? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23294