From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24740 invoked by alias); 2 Oct 2005 19:16:06 -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 24725 invoked by alias); 2 Oct 2005 19:16:04 -0000 Date: Sun, 02 Oct 2005 19:16:00 -0000 Message-ID: <20051002191604.24724.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/18851] IMA is slow and could be sped up In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "cvs-commit at gcc dot gnu dot org" X-SW-Source: 2005-10/txt/msg00126.txt.bz2 List-Id: ------- Comment #7 from cvs-commit at gcc dot gnu dot org 2005-10-02 19:16 ------- Subject: Bug 18851 CVSROOT: /cvs/gcc Module name: gcc Changes by: pinskia@gcc.gnu.org 2005-10-02 19:15:59 Modified files: gcc : ChangeLog c-typeck.c Log message: 2005-10-02 Andrew Pinski PR c/18851 * c-typeck.c (tagged_tu_seen): Rename to ... (tagged_tu_seen_cache): this and add val field. (comptypes): Move functional to comptypes_internal and free tagged_tu_seen. (comptypes_internal): New function and call comptypes_internal instead of comptypes. Speed up by sibcalling tagged_types_tu_compatible_p. (alloc_tagged_tu_seen): New function (free_all_tagged_tu_seen_up_to): New function. (tagged_types_tu_compatible_p): Return the val of the seen two types. Add that the two types are the same to tagged_tu_seen_base if they are and call comptypes_internal instead of comptypes. : Speed up common type where the fields are in the same order. (function_types_compatible_p): Call comptypes_internal instead of comptypes. (type_lists_compatible_p): Likewise. (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10066&r2=2.10067 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.479&r2=1.480 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18851