From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id 9F2E73858D38 for ; Mon, 10 Apr 2023 20:36:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F2E73858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102c.google.com with SMTP id h24-20020a17090a9c1800b002404be7920aso5640587pjp.5 for ; Mon, 10 Apr 2023 13:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681158991; x=1683750991; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cu7hXtWX7xO5GJrxTy2WtxX+PZM11nhZisi08Sf+vc4=; b=Y26n9AZYrUaEElafN4amGSiS3tTQoLnKKkwwLxNkjj0STljzhQigKxNTCDC/QOVHYT NeRztDfRP4f2A3ONaNi3IN6eyvgsG6LrtWAP+Q55QL5wKjLjPLMqlDOI2YWZailLkeyF CrCJr2EEIp1pccJZ2hBnWnC7lKvx3EGMO+cCxUehA99W5f2jO+G3ItxqyEBCj80dUa4K jnDoNMOD7hoBo4KIHov/1P8dxl1g8GVQOUXdHY0lBjWiFX9Dd9swvhsdnElsc24imaR4 KWyB/1n6ftmjntlriVHmWg2jF555Nh+zX/exCvUx+XBLndg5UcSRYf/iYCvzjOp0DoiN Wy5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681158991; x=1683750991; 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=cu7hXtWX7xO5GJrxTy2WtxX+PZM11nhZisi08Sf+vc4=; b=a9kdxeWZaXXcgFIxPPw0KC0JSVKO38JDH/Tnoop+xRCJf+01U0Qjq6vqizgI3xRmv3 nSlO6fr4wmR3bCMjUOTEPeSw/yBBORFka2bKaSCrzG529hJRX3qdBlX3SdtNgstqK1Kp od7s0IRTrYwqdatZ+m0+YsjJQhF3VlotFrOHhfLc8g2c9zvmveLGB649juwPlqpkmIJg c5tjSjrELKLIrvoaqd3d3U+E5RwVTPBE192u6NWtRMoU0IKYoZahqLEyBsgjBEm80nun 7U5jYLixAvSTExaB5OeJa8Goh8wBvEXyZzJD+eafZcKMXWUsMdSGCJh9+fiPGmppfi6f 9A3A== X-Gm-Message-State: AAQBX9ejIqTpocWDHpLYQsaXfrXQu6AFHtm5xeRL79KaIF4n3TtieV4r D+0n7jhUx5ay0T+c84gQYgM= X-Google-Smtp-Source: AKy350bKYKxmdq4RoEkAg7bYtUTLJDxF3jT7xI4s4f6vZGfwe4a8+bIoHqCCB6OngVj+/pEwwk+FUg== X-Received: by 2002:a17:903:32d1:b0:1a2:9dd8:d646 with SMTP id i17-20020a17090332d100b001a29dd8d646mr18043173plr.54.1681158991018; Mon, 10 Apr 2023 13:36:31 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id jl13-20020a170903134d00b0019acd3151d0sm8226996plb.114.2023.04.10.13.36.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Apr 2023 13:36:30 -0700 (PDT) Message-ID: Date: Mon, 10 Apr 2023 14:36:28 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] machine_mode type size: Extend enum size from 8-bit to 16-bit Content-Language: en-US To: Jakub Jelinek Cc: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, palmer@dabbelt.com, richard.sandiford@arm.com, rguenther@suse.de References: <20230410144808.324346-1-juzhe.zhong@rivai.ai> <89f088ec-8692-01f5-0395-5a66ddf085d7@gmail.com> From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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 4/10/23 09:18, Jakub Jelinek wrote: > On Mon, Apr 10, 2023 at 08:54:12AM -0600, Jeff Law wrote: >> This is likely going to be very controversial. It's going to increase the >> size of two of most heavily used data structures in GCC (rtx and trees). >> >> The first thing I would ask is whether or not we really need the full matrix >> in practice or if we can combine some of the modes. >> >> Why hasn't aarch64 stumbled over this problem? > > From what I can see, x86 has 130 modes and aarch64 178 right now. To put it another way. Why does RISC-V have so many more modes than AArch64. Jeff