From patchwork Thu Apr 3 17:56:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dehao Chen X-Patchwork-Id: 336697 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 B641D140084 for ; Fri, 4 Apr 2014 04:57:07 +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:cc:content-type; q=dns; s=default; b=sCQwTOlM95zWve2d2PsADwIPpvG+8n7wFbsZKPnr+Nn rMFyXhMJUm+8xpBtDr5zyphhsJ2HqxyKJydlqSiLowlqK+GoJii5k7CrJV03Grel YD8Y9RbAF2dyFWnk9/JXYGibcCpu/PDQzNUXUaMURbNgSo3xs8nWDxWYaESxsEKY = 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:cc:content-type; s=default; bh=4kWmUMsGS9VlcOkkKQU8uBFmarg=; b=cauzriNB7TEGwl3w2 RdLhf+7jQUQbUbOjIt+NJwPJpF5v2WbmpKH2Dwx8angciUhM4CUtyCU91AP44vqe Jm1BuKZFofxSvie+tmnWQ79Idh5iJpfENA4qZl8eYudwghoNpc3+S/vpPRJ00Qqn cLSXCGg7ZpG6N5ACGA08l63WZo= Received: (qmail 30797 invoked by alias); 3 Apr 2014 17:57:01 -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 30787 invoked by uid 89); 3 Apr 2014 17:57:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 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-ie0-f176.google.com Received: from mail-ie0-f176.google.com (HELO mail-ie0-f176.google.com) (209.85.223.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 03 Apr 2014 17:56:59 +0000 Received: by mail-ie0-f176.google.com with SMTP id rd18so2224691iec.35 for ; Thu, 03 Apr 2014 10:56:57 -0700 (PDT) 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:cc :content-type; bh=WDZ9ZOI3U3a8DsiO2RkMHqLxlyENW3X8zqWQY1UHDs0=; b=OPOj4JnUNRSHIQZp6E+myH1fGbUDKiDLq5ime0BU4C133PEgBoSHl6xAPPZwmXbh5u WaI66IJq5Cl6bQinvJ1XRoLoF7g/H/UOxvkt0fBO+wG//mGVZ1zBOP2AVIDbepoSvjzU 6gnv9ZY7dXa7T/pbn9kdDJhIFRp7vHwnWiWjAeJUBvczDBl3KVaWkhH0drV7RSlYCpbv bfz/WDfh1MRZZw2pLbuexfs3HzIrFV7GHm77i7ewRMcrL/LGbF9x/Wwgx9Ng5n0/jeaF PHvHSHnLHBiw2BvUx8UzXkuagExFiPLU28DW9lG0oTWfqqob9+HE3F0GsM0beGjlxswt Q1xA== X-Gm-Message-State: ALoCoQnndGa0NwQpm5gnMtWuvWlzgBID61MrU3rd6KxFavLtngDFtvq4V9B88+rYr/joXHmqozEdYufstNOngNaS2OSLBouEmgn81z44zDPhP1yFd7OqRHuTTTnhCqjyXbWntk/YGyk3EkxUqQ3j51U4kQonG76Bc6OKrMQcZsjMDXL6B1hyMthqULhsQ78o48IBDVRXrJTNcVZGneE7ZdHcsrR8Wn38QQ== MIME-Version: 1.0 X-Received: by 10.50.143.107 with SMTP id sd11mr17096156igb.39.1396547817255; Thu, 03 Apr 2014 10:56:57 -0700 (PDT) Received: by 10.64.18.207 with HTTP; Thu, 3 Apr 2014 10:56:57 -0700 (PDT) Date: Thu, 3 Apr 2014 10:56:57 -0700 Message-ID: Subject: [GOOGLE] Updates SSA after VPT transofrmations in AFDO pass From: Dehao Chen To: GCC Patches Cc: David Li , Luis Lozano X-IsSubscribed: yes This patch updates SSA after VPT transformation. This is needed because compute_inline_parameters will ICE without updated SSA. Testing on-going. OK for google-4_8? Thanks, Dehao Index: gcc/auto-profile.c =================================================================== --- gcc/auto-profile.c (revision 209059) +++ gcc/auto-profile.c (working copy) @@ -1448,6 +1448,7 @@ afdo_vpt_for_early_inline (stmt_set *promoted_stmt free_dominance_info (CDI_POST_DOMINATORS); calculate_dominance_info (CDI_POST_DOMINATORS); calculate_dominance_info (CDI_DOMINATORS); + update_ssa (TODO_update_ssa); rebuild_cgraph_edges (); return true; }