From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 908F33858C3A for ; Wed, 2 Nov 2022 22:33:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 908F33858C3A 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-io1-xd33.google.com with SMTP id b2so1365349iof.12 for ; Wed, 02 Nov 2022 15:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=MHHPiQYpc3m8cn95eM+QEZqqvouOvRLf39+Uf+/yFH4=; b=pfFJWd0dn3moyzOa34nbyVrpImvT55THVcj80ULT8OeuXVXhPiFp3ueUWyOiCXiaXI DjHvTl/LjMq1n/U1bZU6V4OYefSxUFA9r9kPKnEMQzgbvy3krFObfNVf17HNzjkhn0q2 SJtdNzWNIWSiAMRw+6Rv/02EHndCAYKgbpUFw66DfoQb4BUHGuhfu1azpLewZewCD/J0 vbPDcZvriwBI4smksXTe86TBD+Rs6DDGUiYKkWR3odQY1XFds2+mJCIC4hU6Sk4suuUd YzgU4gFEGSNAQwM4fA58bRtiXzHjD4ZLSDn9zxQSpdrrWVXx4Ftu1GvbgDcgR4LKoz86 P+QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=MHHPiQYpc3m8cn95eM+QEZqqvouOvRLf39+Uf+/yFH4=; b=dR5Wc/XoePm6GEH5PfxVIVSiK+28Fl7r51MFJ+AfRDTxyLerQiWv9CwrCdHgNkqtzU GtUYwIrRUVnXOqH8tqJyAZdbTTP3mDTzTUG6qZgsbNcdB1/noppkAgdptW/K+Wx1duu1 +EC3TAFW+8fmZ0GK0sncr00mIv8cuwAEa/89sWIWHiylw4xEp8AL3L7TJMI522MhUY7/ 4e5oC/ZgU/E3R8UIkiwhyGJazeIXnQZOFyEsB/6Cq9gsbJQyrfikyT1nDAQuGdyn6+W1 YhQgYj7VXrsojZygWPnntakyufo4pBSZFfjMhvErd8QHp5vF5ZTnn5dVgERAVHgo/idl 2n6A== X-Gm-Message-State: ACrzQf2Cqb5xa9GQgzpQGPMVWm1pWJdePdmqsK0j1rrwozokeLqoh01/ dLkRrcltkymuemIi2ExAqBJOlqg2zSI= X-Google-Smtp-Source: AMsMyM5oVKESezOX6tGJnbdl6sk4nkIZkWdEf7lTytfOyhRcBgo511vrVtWN2f816CbOhhXEqZ8QmA== X-Received: by 2002:a02:ca06:0:b0:375:6213:5e35 with SMTP id i6-20020a02ca06000000b0037562135e35mr11633427jak.107.1667428379367; Wed, 02 Nov 2022 15:32:59 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id p21-20020a02b395000000b003640f27d82esm5430880jan.21.2022.11.02.15.32.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 15:32:56 -0700 (PDT) Message-ID: <49d6c337-0b22-6b77-8bae-ad5724acbb8d@gmail.com> Date: Wed, 2 Nov 2022 16:32:55 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 1/2]middle-end: Support early break/return auto-vectorization. Content-Language: en-US To: gcc-patches@gcc.gnu.org References: <9D26FE2F-11D7-4245-A0A9-94246542DFF9@gmail.com> From: Jeff Law In-Reply-To: <9D26FE2F-11D7-4245-A0A9-94246542DFF9@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 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 11/2/22 15:50, Bernhard Reutner-Fischer via Gcc-patches wrote: > On 2 November 2022 15:45:39 CET, Tamar Christina via Gcc-patches wrote: >> Hi All, >> >> This patch adds initial support for early break vectorization in GCC. >> The support is added for any target that implements a vector cbranch optab. >> >> Concretely the kind of loops supported are of the forms: >> >> for (int i = 0; i < N; i++) >> { >> >> if () >> ; >> >> } >> >> where can be: >> - break >> - return > Just curious, but don't we have graphite for splitting loops on control flow, respectively reflow loops to help vectorization like in this case? Did you compare, and if so, what's missing? Graphite isn't generally enabled, is largely unmaintained and often makes things worse rather than better. jeff