From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by sourceware.org (Postfix) with ESMTPS id D2BE03858D28 for ; Wed, 3 May 2023 17:31:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D2BE03858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-55a8019379fso31022637b3.0 for ; Wed, 03 May 2023 10:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1683135109; x=1685727109; 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=FhOX6D7tT5QsjWgqasMNyJr2o/8Bzaz+6ug58CJnY7U=; b=LqcvA0T6UQALzFZ+oswYDMP3iS57vJrn5U0+VZvqUDDugBC3nW7H1bjtLnIS55VG4G WLpyY9acDT/vlgYPpDQrTA+I9NgrtZDkO2zib2RrvIu8Cxxv2CQKS1F+Yt5/V22LZUI7 q3PQ5KxhkVN1vQx3ANIbBPiVmvRB1qXXP6FZh09jh8eAyXDGP8RVi/+FqLDtceRA2cY0 pha3se7k74V5wG1D9K882X4Mj2uMyIvBuyehy3ULw3uhZ1YdcfxQy9knQmUBtJha7FeJ 5STnEW+IdSGhHImyUBUV+/+U28rCXa8QScJkz2b1y0c2Z5qj9aIjQ4VmKCgheQmEsNn3 IXBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683135109; x=1685727109; 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=FhOX6D7tT5QsjWgqasMNyJr2o/8Bzaz+6ug58CJnY7U=; b=P1WftLz/MUHLefmOddEC2bxdDy/PCaU0oGBudwCjpRgtPLscvPnigW8hHqqpxWIgaW pf3jJ5vondIbEp+kZnZBBbI+TeRhku7Yw8UYj6PphyUOOL5+iQkxq/Ld2vqxMVPwZnN1 cqSDiBS6P/jLpjEIVCYGfZ1qRdaDSIf4ATLi7fKwv7n8swwcAPmBkRZGMTzk4NeY4VLm wuVcxbPd5u5saLpXKSs/Ksiimx+ZjKWIYjvrhj1vIv6ynF1E4ESvLL94EEUVNCeAQKQC y7qVSVIQ6oJvtRjY4QnyVRq3fSkUqCgXQZUDixgFqGYiK+khfAO6IXPA/4MXKcLSC2p/ ryyw== X-Gm-Message-State: AC+VfDwy2FvScv7+e24S1iYgRH5pnztNOlA7rBvbj4bvuG+7HzXpQOv2 hVvbLzINR/7n4F+36SBNpnJbYVOq9YQw08vdy+I= X-Google-Smtp-Source: ACHHUZ4pdvVceArXhNyIfRc8bNSxgVZKw1d82rbKobYPPHUBxx8WYBcgKFBJ208+ep/EWXTPsdvwZw== X-Received: by 2002:a81:4654:0:b0:52e:f109:ba7a with SMTP id t81-20020a814654000000b0052ef109ba7amr19205271ywa.51.1683135109203; Wed, 03 May 2023 10:31:49 -0700 (PDT) Received: from [192.168.86.117] ([136.57.172.92]) by smtp.gmail.com with ESMTPSA id z13-20020a81a24d000000b0055a18d8479csm2551264ywg.21.2023.05.03.10.31.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 10:31:48 -0700 (PDT) Message-ID: Date: Wed, 3 May 2023 13:31:48 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5 03/10] RISC-V:autovec: Add auto-vectorization support functions Content-Language: en-US To: Kito Cheng , "juzhe.zhong@rivai.ai" Cc: gcc-patches@gcc.gnu.org References: <20230426214514.3355280-1-collison@rivosinc.com> <20230426214514.3355280-4-collison@rivosinc.com> From: Michael Collison In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: HI Kito, I see there have been many comments on the "riscv_vector_preferred_simd_mode" hook, is there an updated version? On 5/3/23 06:53, Kito Cheng wrote: >> @@ -176,6 +178,46 @@ calculate_ratio (unsigned int sew, enum vlmul_type vlmul) >> return ratio; >> } >> >> +/* Implement TARGET_VECTORIZE_PREFERRED_SIMD_MODE for RVV. */ >> + >> +machine_mode >> +riscv_vector_preferred_simd_mode (scalar_mode mode) > JuZhe's patch[1] has been implemented and his version handles > types/modes in the right way IMO, > so I would like to take his version for this hook. > > [1] https://patchwork.sourceware.org/project/gcc/patch/20230419164214.1032017-3-juzhe.zhong@rivai.ai/