From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19982 invoked by alias); 5 Apr 2004 23:00:56 -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 19909 invoked by uid 48); 5 Apr 2004 23:00:47 -0000 Date: Mon, 05 Apr 2004 23:00:00 -0000 Message-ID: <20040405230047.19908.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040405225029.14859.kazu@cs.umass.edu> References: <20040405225029.14859.kazu@cs.umass.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/14859] [tree-ssa] integrate identical cases of a switch statement. X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg00467.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-05 23:00 ------- Actually this is a size/speed win on every target because at least for this case you can do a range comparision after combing the BB in the switch statement. For PPC, foo1 is the one where they are combined. _foo: cmpwi cr7,r3,15 cmpwi cr6,r3,16 xori r0,r3,14 addic r0,r0,-1 subfe r0,r0,r0 li r3,123 beqlr- cr7 andi. r3,r0,123 bnelr+ cr6 li r3,123 blr .align 2 .globl _foo1 _foo1: addi r0,r3,-14 subfic r3,r0,2 subfe r3,r3,r3 nand r3,r3,r3 andi. r3,r3,123 blr -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-04-05 23:00:42 date| | Target Milestone|--- |tree-ssa http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14859