From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id CAF3F3858C52 for ; Wed, 26 Jul 2023 16:18:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAF3F3858C52 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-pf1-x433.google.com with SMTP id d2e1a72fcca58-666eec46206so10736b3a.3 for ; Wed, 26 Jul 2023 09:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690388295; x=1690993095; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8u3z+bxsjD8pP19XaZcYxX3t1txv/n85EJOzjdhPzAQ=; b=jEIK7HJLvg9+vGc4HxDc1g6XdqAs4o9nDsdw/cbAfvHcgHkBZFkj191Z01s0jj2aYu 5Z2VGMA7XIG6PrgWOtz1Z9wElflciMiAry+78uQUubEmdKcTtRek948UqwzLtvOXgqqh y6lrgKaVCEyo2VmIBhMkPChvJ1Tzo70r+p6OLxw6pO8N8q3buPD5NE2gJaPCwgD2qnWX ERwbdJL5X8Grg+8JvvDtQDrwIhxMlj6BvI7v5IkEFNT05NA7VIqToytB5h/8RJ+9fbE6 +L4lP/TJ/aj95McSk7u7v5lUsNVl3EXEjSetV0vgDE2engrSGPboQrjynlsH1sJXSPjM eaVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690388295; x=1690993095; h=content-transfer-encoding:in-reply-to:from:references: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=8u3z+bxsjD8pP19XaZcYxX3t1txv/n85EJOzjdhPzAQ=; b=DV5Wq2ZPRBh/q6aeuKqDmT/wHrmLKZL1/z8mAOcCE5eaVIyvtLNzc+zBJfzrjh63vs HNZAgZHAB7GTrAPRwd9an38xOGTMcym3GIANoLkt7cAvt/5rK7lkXk6LxO0TP1RLBZB7 AdcdbEtpCWy0rwIwcn6u/qj3P+C2k4iK3eW0MD0lSXKxNd4aPVP7hz9I4ViOLrFqiOMT iMlP0xIIMLqsoOU2HTBoe6r/Uzua84L6fqsM+12sNjPNbX8JioKPc3fVultcI+f0mAiF gNtyuIEW5FRIjDSCQYngQahUUULDX9r+CK/aMV/RYGA/dq/Iy+LZCXzQyD1hvcMGgHNh 1WNQ== X-Gm-Message-State: ABy/qLbo0GtY/2auQN9D0d3JnfGPnfT4/tgu1/G3E6BfopWMYmJWjhiG P01XRi4yxObeO/XD2rrg8bY= X-Google-Smtp-Source: APBJJlFuJ1jWehqXR1/nmOmucrI0AUm3pLq4MvCtYFQp+vmJPfIXYH6e2lxFrFnP95EXJ4kUYJHeLg== X-Received: by 2002:a05:6a00:1681:b0:674:8fe0:126f with SMTP id k1-20020a056a00168100b006748fe0126fmr3585529pfc.27.1690388295038; Wed, 26 Jul 2023 09:18:15 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id 17-20020aa79211000000b0063f1a1e3003sm11563905pfo.166.2023.07.26.09.18.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 09:18:14 -0700 (PDT) Message-ID: Date: Wed, 26 Jul 2023 10:18:13 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] tree-optimization/106081 - elide redundant permute Content-Language: en-US To: Richard Biener , gcc-patches@gcc.gnu.org References: <20230726132804.E4E863854826@sourceware.org> From: Jeff Law In-Reply-To: <20230726132804.E4E863854826@sourceware.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 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,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 7/26/23 07:27, Richard Biener via Gcc-patches wrote: > The following patch makes sure to elide a redundant permute that > can be merged with existing splats represented as load permutations > as we now do for non-grouped SLP loads. This is the last bit > missing to fix this PR where the main fix was already done by > r14-2117-gdd86a5a69cbda4 > > Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. > > PR tree-optimization/106081 > * tree-vect-slp.cc (vect_optimize_slp_pass::start_choosing_layouts): > Assign layout -1 to splats. > > * gcc.dg/vect/pr106081.c: New testcase. :-) Glad to see how easy this ended up being after the work you put into pushing permutes around a couple years ago. jeff