From patchwork Wed Feb 26 23:23:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dehao Chen X-Patchwork-Id: 324660 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D269C2C0089 for ; Thu, 27 Feb 2014 10:23:20 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=Zeh/PWGoXNDJQFu4Nk+bech9cHkRJbniwrcHadPgH2rmPF gIViPOhOyCfVkSvFV1bf3K1uGgbhCssOQ138jDDsTmnIHWCarVNOOb07Dw0yzTox xOSHZShiTWrz1dD5M6Ek/U58VL65E1MiAhxbT/u2haUU2RQWjRnMo+BNFHHbI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=CDF5oHu9CUs035FfgU4AdWlAFQU=; b=paFs3w3N41MswGcFP+F4 9J+oXhIqEYaHW482MqaKj0zEYY4pvkK7KB56ZsiFLpy3W89BBi/LRoqVtX758lFn VzlmTzkR+T+vAktzpy7TbN6+PumMacDyRfpBrIptDTDtJBGJHxD4Lo3YMqBVMIQ4 lh7I0k16lZ06hUEani4azXw= Received: (qmail 25348 invoked by alias); 26 Feb 2014 23:23:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25331 invoked by uid 89); 26 Feb 2014 23:23:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f170.google.com Received: from mail-ig0-f170.google.com (HELO mail-ig0-f170.google.com) (209.85.213.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 26 Feb 2014 23:23:08 +0000 Received: by mail-ig0-f170.google.com with SMTP id uq10so3550227igb.1 for ; Wed, 26 Feb 2014 15:23:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=xiiupqptwVTWFbTfslPbK7TBghrvV02exAfHIhGdyws=; b=Ev+z2IyulEZOALprBBI5QuLERoC8Wk8T7W1spoA5nikNFEK4tFUcb9LnqKW4mUrn9n HZZ2910pLiPN0OzDcoQ5zyue+293ia3MyB5QEOr3jqBxjB5N+k46WhZt4oaKm/JqufnM aDGN839xSv4lVAYKcQcneLu4gDKmE96mm4m/+p7vvtyj/NxMrc2a58wDdNWSOJcCt1xB BgiFQMvxrRldYwAprZt650QUcmolVdC7YJvMqgYfWjSEmO0isVLeEbPJcP4RVz4iwXSs dMfDKE8SXSN6mHNYXsFd/mU6KmPi0eqId4iTxUGrQ32f6p6XAcF/3xFL6pmWwoMtuS3m w3Wg== X-Gm-Message-State: ALoCoQlZUvDg33b4rr2E/T0rW3Hgxt/RVPLRuWGy313wCuIuNU0Uui8qOlRc8cMIobj+RkMFtZz8MlZNHIxwyLnHfNKfi8kOKX36T6LiixAUrXec5O3goWnaNwVQ8jQ8MSj8g5GdOudifO7WJ83xRnak5n5wp6t1G/7PM4t+cD46kqGxlyfBxfaftGKU64jm1hD9Toq9DI1v6kaiY7oWW4WHdbDwS6trTw== MIME-Version: 1.0 X-Received: by 10.50.128.101 with SMTP id nn5mr29300916igb.7.1393456986258; Wed, 26 Feb 2014 15:23:06 -0800 (PST) Received: by 10.64.56.228 with HTTP; Wed, 26 Feb 2014 15:23:06 -0800 (PST) Date: Wed, 26 Feb 2014 15:23:06 -0800 Message-ID: Subject: [GOOGLE] call compute_inline_parameters before early_inliner From: Dehao Chen To: GCC Patches , David Li X-IsSubscribed: yes This patch fixes the bug of not calling compute_inline_parameters before early_inliner, which would lead to ICE. Testing on going, OK for google-4_8 if test passes? Thanks, Dehao Index: gcc/auto-profile.c =================================================================== --- gcc/auto-profile.c (revision 207970) +++ gcc/auto-profile.c (working copy) @@ -1533,6 +1533,8 @@ auto_profile (void) early_inliner (); } + compute_inline_parameters (cgraph_get_node (current_function_decl), + false); early_inliner (); autofdo::afdo_annotate_cfg (promoted_stmts); compute_function_frequency ();