From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19134 invoked by alias); 26 Mar 2004 01:29:25 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19119 invoked from network); 26 Mar 2004 01:29:24 -0000 Received: from unknown (HELO mail-out4.apple.com) (17.254.13.23) by sources.redhat.com with SMTP; 26 Mar 2004 01:29:24 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id i2Q1WCp2010076 for ; Thu, 25 Mar 2004 17:32:12 -0800 (PST) Received: from relay1.apple.com (relay1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.6) with ESMTP id for ; Thu, 25 Mar 2004 17:29:23 -0800 Received: from [17.201.20.186] (gambrinus.apple.com [17.201.20.186]) by relay1.apple.com (8.12.11/8.12.11) with ESMTP id i2Q1TLGK016007; Fri, 26 Mar 2004 01:29:22 GMT Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <086B964A-7EC5-11D8-8C7F-000A95D7CD40@apple.com> Content-Transfer-Encoding: 7bit Cc: Dale Johannesen From: Dale Johannesen Subject: [tree-ssa vs lno] who is right? Date: Fri, 26 Mar 2004 05:32:00 -0000 To: "gcc@gcc.gnu.org list" X-SW-Source: 2004-03/txt/msg01531.txt.bz2 When the LNO branch copies a loop, it attempts to fix up the phi nodes with an algorithm that assumes there is only one phi per block per variable. That is, it won't see code like this: ;; basic block 19, loop depth 0, count 0 ;; prev block 9, next block 20 ;; pred: 10 [100.0%] (fallthru) ;; succ: 28 [50.0%] (true,exec) 29 [50.0%] (false,exec) # maxmin_Result_140 = PHI <1(10)>; # maxmin_Result_142 = PHI <2(10)>; # lsm_tmp.19_144 = PHI ; :; if (m__10 == 0) goto ; else goto ; Is that suppose to be a valid assumption? The dup is created by copyrename, and I see no code there that's intended to stop dups from being created (on the contrary, but surely it's unusual for the live ranges to overlap).