From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 38EC038E08FE for ; Mon, 13 Nov 2023 19:26:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38EC038E08FE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 38EC038E08FE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699903564; cv=none; b=Ep3U//fTW131APmVkmIYioacy5WdXcx6X6ZsnsbtIuNyZjoCgVEwSudszbSaLIwrRTIoSctdelBb3vMgQ/LMJqNowzoFbMUc1iOKY1EpKLrrEY1ALb31GA9rlkDyKE+UsmC5v6/PUc4MIJUms4ug3F3gm9QlwnpeL1tmst32lTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699903564; c=relaxed/simple; bh=EffQE92Xx23ljTJtRk+aS1EExiKj5fAJjKy996N/JM8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=GD5g9tLjxOagOq/XeFbxxtx8sSoOHGxXX19A6I9fPqB//ASZdqLir2bl8iEE9a6dhf7IaWOcN8Cq3KoAQTbouDZszeZ60aRCtTzTrkdosxA0WKPfqRZo6LnwTUsMaU6Xjh+stnbzPsChEfA5yNOiLrW5cW+b5JwlF+TFi4qGeoI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699903561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CscvJfmy8pJay5nWW8JbDZAAMihwpO2L+YvDdnfNiic=; b=iBAkiStIoAKkgoun47RPdZDP4Uls/Mw0zBorEoq2aAhLGiukDzbDf/U4rkO8NtViwgRKIE dkEEpmOLmSODmlQrcHkt8RhHhcPLyHbVTxWqqXvfnUXh+1C9sh0R+JvIjU639GftZtAdqQ bRIMMbG56EL4CnffOPS9FYplUH25lIM= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-629-Hp3fHzAEOSiN3q4Ldxowsg-1; Mon, 13 Nov 2023 14:25:58 -0500 X-MC-Unique: Hp3fHzAEOSiN3q4Ldxowsg-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-5a90d6ab944so69680897b3.2 for ; Mon, 13 Nov 2023 11:25:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699903557; x=1700508357; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CscvJfmy8pJay5nWW8JbDZAAMihwpO2L+YvDdnfNiic=; b=DVTOp5lyp8RmPJBWKu8x2+7XZTKG6d6u01xi588PKra7F6aUlS5jtZVNK6CaZdrgNf XZK08FSiSOh9/Sy7UdsloY2BP8SIudFO53FdzNq06q5rPi3Bl5IkbK429vm+6RA2u7oq YI5MZkmpBLG97KklCu07sOWPYNlx0EUVsBeJpPCPZ3W3iKEwm2D6YpC6ik8G+d21fO8K zcPSneNKkNBS3ROC8XmT3vAW9PdiAIueCDvySxc3WYod7Ed71Fa7gkxnVEMSIIOPhmM1 cgmFZjkhY+VG8bGHvmHQW/g7lZVGWJVvC/u3lTW+MTK4ApP2epAYwGr87E0Wcl30uLig Nn0w== X-Gm-Message-State: AOJu0YzDgYvrrofjSnHmvvp584LouZVo2VkAlWWEF1EedSJddiFsOLqK eYcwdTlnW/zMqxWbX6RsWf++YmzCIqHTILEnty0UMCnNSYdgtAa2UrGrwiiG8Pczv+1YqPj9r8d AFPu2cficdpXJz5PoeQ== X-Received: by 2002:a0d:ed06:0:b0:59f:5361:d18c with SMTP id w6-20020a0ded06000000b0059f5361d18cmr7899312ywe.41.1699903557456; Mon, 13 Nov 2023 11:25:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXlYZZDBq3OtUY+UqE6RSY6QQI4mYFQKd3x5gsgP9Lgl7EdTygAEFidE5JlCdJ+iDNFpbn5w== X-Received: by 2002:a0d:ed06:0:b0:59f:5361:d18c with SMTP id w6-20020a0ded06000000b0059f5361d18cmr7899293ywe.41.1699903557165; Mon, 13 Nov 2023 11:25:57 -0800 (PST) Received: from [192.168.1.88] (23-233-12-249.cpe.pppoe.ca. [23.233.12.249]) by smtp.gmail.com with ESMTPSA id o3-20020a056214108300b0065b11053445sm2312940qvr.54.2023.11.13.11.25.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Nov 2023 11:25:56 -0800 (PST) Message-ID: <051bb52e-d1f9-172b-8b58-26b45344f154@redhat.com> Date: Mon, 13 Nov 2023 14:25:55 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 0/7] ira/lra: Support subreg coalesce To: Lehua Ding , gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, juzhe.zhong@rivai.ai References: <20231108034740.834590-1-lehua.ding@rivai.ai> <2875be42-1bc8-695d-c314-2a28b4605a98@redhat.com> From: Vladimir Makarov In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/12/23 07:01, Lehua Ding wrote: > Thanks for the specint performance data. I'll do my best to get the > compile time and memory issues fixed. I'm very curious to know if the > way used to solve the subreg coalesce problem makes sense to you? > If it works,  it is ok for me.  There is always a room for any optimization even if it decreases compilation speed considerably. We just need to keep the same speed for optimization level <= 2.  We can put really expensive optimizations to -O3 or -Ofast. Although the first thing I would try myself is to do subreg liveness analysis only locally (inside BBs).  The majority cases I saw to improve subreg RA were local (inside a BB).   For such approach, we probably would have only minor compiler speed slowdown and could use the optimization by default.