From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aye.elm.relay.mailchannels.net (aye.elm.relay.mailchannels.net [23.83.212.6]) by sourceware.org (Postfix) with ESMTPS id 742433858D28 for ; Tue, 23 Nov 2021 16:00:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 742433858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 15F09461601; Tue, 23 Nov 2021 16:00:40 +0000 (UTC) Received: from pdx1-sub0-mail-a306.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6EEE4461B57; Tue, 23 Nov 2021 16:00:38 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a306.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.81.154 (trex/6.4.3); Tue, 23 Nov 2021 16:00:40 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Stretch-Abortive: 4c01a6187e709a73_1637683239385_45867895 X-MC-Loop-Signature: 1637683239384:2842234948 X-MC-Ingress-Time: 1637683239382 Received: from [192.168.1.174] (unknown [1.186.224.140]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a306.dreamhost.com (Postfix) with ESMTPSA id 4Hz84N0mgGz1YX; Tue, 23 Nov 2021 08:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gotplt.org; s=gotplt.org; t=1637683237; bh=CXsu3iNUgp34G8kLmtznHavBa+M=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=fcCopLNvoXUILNBKvHl8RrfcOMUPg26Hw5XsG8A6NHgZ8qoXjY17UlY9VXBkMAUuH 55ZOWGMtLUkGvOguqddfkrqSUVyb2uWUZVvALXlgd37MN8npnZ3FuKnJ67NELVR9do W+v5tNDNkCtCu30dVYwWYQTaQ52PzX+SbO7wHyMQ= Message-ID: <7207a9c6-f134-651d-b9d6-e72bb2d8b0be@gotplt.org> Date: Tue, 23 Nov 2021 21:30:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 06/10] tree-object-size: Support dynamic sizes in conditions Content-Language: en-US To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org References: <20211109190137.1107736-1-siddhesh@gotplt.org> <20211109190137.1107736-7-siddhesh@gotplt.org> <20211123151252.GZ2646553@tucnak> <773d3a85-b78c-c67e-c190-b9b128d3738b@gotplt.org> <20211123155254.GA2646553@tucnak> From: Siddhesh Poyarekar In-Reply-To: <20211123155254.GA2646553@tucnak> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3029.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 16:00:47 -0000 On 11/23/21 21:22, Jakub Jelinek wrote: > Evaluating __bdos in both passes is undesirable, certainly for the same > SSA_NAME, but even for different SSA_NAMEs, if everything is done in a > single pass it can easily share temporaries (object sizes for SSA_NAMEs it > uses), while if some __bdos is evaluated early and other late, we'll need to > hope further optimizations CSE those. OK, then treat __bdos like __bos in objsz1, adding MIN?MAX for subobjects and full evaluation in objsz2? Thanks, Siddhesh