From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27992 invoked by alias); 18 Dec 2014 21:07:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 27977 invoked by uid 89); 18 Dec 2014 21:07:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f50.google.com Received: from mail-qa0-f50.google.com (HELO mail-qa0-f50.google.com) (209.85.216.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 18 Dec 2014 21:07:43 +0000 Received: by mail-qa0-f50.google.com with SMTP id dc16so1377232qab.37 for ; Thu, 18 Dec 2014 13:07:41 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.224.65.69 with SMTP id h5mr7678622qai.69.1418936861280; Thu, 18 Dec 2014 13:07:41 -0800 (PST) Received: by 10.140.90.71 with HTTP; Thu, 18 Dec 2014 13:07:41 -0800 (PST) In-Reply-To: <54930811.1020003@arm.com> References: <54803EBE.2060607@arm.com> <5480B6D6.2020201@arm.com> <548EFE0D.1070808@arm.com> <548EFE55.6090901@arm.com> <54930811.1020003@arm.com> Date: Thu, 18 Dec 2014 21:16:00 -0000 Message-ID: Subject: Re: [PATCH] PR 62173, re-shuffle insns for RTL loop invariant hoisting From: Jiong Wang To: Jiong Wang Cc: Richard Biener , "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg01590.txt.bz2 2014-12-18 17:00 GMT+00:00 Jiong Wang : >>>> ok for trunk? >>>> >>>> gcc/ >>>> PR62173 >>>> loop-invariant.c.c (expensive_addr): New hash_table. >>>> (need_expensive_addr_check_p): New bool. >>>> (find_exits): Rename to "find_exists_and_reshuffle. >>>> Support re-shuffle instructions for better loop invariant hoisting. another question is, is it safe to re-use REG_DEAD info here without calling df_note_add_problem and df_analysis first? am I using those info passed down from the previous pass which calculated these info and maybe broken?