From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by sourceware.org (Postfix) with ESMTPS id F40AF3857409 for ; Mon, 6 Sep 2021 08:58:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F40AF3857409 Received: by mail-vk1-xa35.google.com with SMTP id s126so1987093vkd.3 for ; Mon, 06 Sep 2021 01:58:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hR6o4gMOX4hrJkoz6zsh1EQnVfURMM2xvL4VmcXsfQU=; b=WT8vnxHw3iBD8HPAXDmNrTxsfDyBI9B0QZP3cyEp8wUgk3aGdtZd/H0uakqexECznT vIU/A8AU9+9a7rrWoloG3XEK0V9MP8AeV4+KPrLowomAFr/wifx9bXWPyX70KSwLMj4L To0zpn5scso0yrgSYAQcYJNJH6XV/nKufnPfJ8DpUO3hOY5jDfkhsNzJ/hAWYsSCpS2u kP/9GPCNnHR2hFGw5h+RMsfufDPL/ZUzNIZ6W4C+oyg1soJ8PfnuF5GAbpHO95oXg7vN FVtN2onGDJKZ2nSCg/B0v10pyGWh0xyqiQqdKagJOTSpKv4OgWzQZZHx5B1n3RuC9LkK ilZQ== X-Gm-Message-State: AOAM5326z8yS/ixoKFwwsKbj9KzROg8s2ynXLbnO5t9GIS2jS2NOUl5D N8zEaRiTaPtUlc1UK+pmS88B9FZfIRI9ihdwsFk= X-Google-Smtp-Source: ABdhPJzfi/gmrMikI5zDndBnCSVScguk/dv+dDfs5H7ulOMkkp5UVA0my8lKwdZ8oGOLmh31EvC214hWVBz5o4dDXkU= X-Received: by 2002:a1f:944d:: with SMTP id w74mr4553331vkd.9.1630918702597; Mon, 06 Sep 2021 01:58:22 -0700 (PDT) MIME-Version: 1.0 References: <87v93nozh7.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Hongtao Liu Date: Mon, 6 Sep 2021 17:04:02 +0800 Message-ID: Subject: Re: Enable the vectorizer at -O2 for GCC 12 To: Tamar Christina Cc: Florian Weimer , "jakub@redhat.com" , Richard Earnshaw , Segher Boessenkool , "gcc@gcc.gnu.org" , Richard Sandiford , "Premachandra.Mallappa@amd.com" , Hongtao Liu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2021 08:58:24 -0000 On Wed, Sep 1, 2021 at 7:24 PM Tamar Christina via Gcc wr= ote: > > -- edit, added list back in -- > > Just to add some AArch64 numbers for Spec2017 we see 2.1% overall Geomean= improvements (all from x264 as expected) with no real regressions (everyth= ing within variance) and only a 0.06% binary size increase overall (of whic= h x264 grew 0.15%) using the very cheap cost model. > > So we'd be quite keen on this as well. > > Cheers, > Tamar > > > -----Original Message----- > > From: Gcc On Behalf > > Of Florian Weimer via Gcc > > Sent: Monday, August 30, 2021 2:05 PM > > To: gcc@gcc.gnu.org > > Cc: jakub@redhat.com; Richard Earnshaw ; > > Segher Boessenkool ; Richard Sandiford > > ; Premachandra.Mallappa@amd.com; > > Hongtao Liu > > Subject: Enable the vectorizer at -O2 for GCC 12 > > > > There has been a discussion, both off-list and on the gcc-help mailing = list > > (=E2=80=9CWhy vectorization didn't turn on by -O2=E2=80=9D, spread acro= ss several months), > > about enabling the auto-vectorizer at -O2, similar to what Clang does. > > > > I think the review concluded that the very cheap cost model should be u= sed > > for that. > > > > Are there any remaining blockers? > > > > Thanks, > > Florian > A patch is posted at [1] to enable auto-vectorization at O2 w/ very-cheap cost mode. [1] https://gcc.gnu.org/pipermail/gcc-patches/2021-September/578877.html --=20 BR, Hongtao