get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2229528/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2229528,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229528/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260428122436.1476396-1-Raghesh.Aloor@amd.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<20260428122436.1476396-1-Raghesh.Aloor@amd.com>",
    "date": "2026-04-28T12:24:36",
    "name": "[v3] BB SLP: Enabling reduction root finding for sum-of-diff kind of patterns",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "db0e6fa889ee974a309ba4fa9dbffc5e5a382794",
    "submitter": {
        "id": 92655,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92655/?format=api",
        "name": "Raghesh Aloor",
        "email": "Raghesh.Aloor@amd.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260428122436.1476396-1-Raghesh.Aloor@amd.com/mbox/",
    "series": [
        {
            "id": 501839,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501839/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501839",
            "date": "2026-04-28T12:24:36",
            "name": "[v3] BB SLP: Enabling reduction root finding for sum-of-diff kind of patterns",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/501839/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229528/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229528/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256\n header.s=selector1 header.b=Oz1/mIty;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256\n header.s=selector1 header.b=Oz1/mIty",
            "sourceware.org;\n dmarc=pass (p=quarantine dis=none) header.from=amd.com",
            "sourceware.org; spf=fail smtp.mailfrom=amd.com",
            "server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.48.35"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4fmx0npRz1xrS\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 22:26:25 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 47F964B920B6\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 12:26:23 +0000 (GMT)",
            "from MW6PR02CU001.outbound.protection.outlook.com\n (mail-westus2azon11012035.outbound.protection.outlook.com [52.101.48.35])\n by sourceware.org (Postfix) with ESMTPS id C3ACD4B920A1\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 12:25:53 +0000 (GMT)",
            "from BYAPR05CA0017.namprd05.prod.outlook.com (2603:10b6:a03:c0::30)\n by SJ5PPF0170DF9F2.namprd12.prod.outlook.com\n (2603:10b6:a0f:fc02::985) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.26; Tue, 28 Apr\n 2026 12:25:48 +0000",
            "from CO1PEPF000066E8.namprd05.prod.outlook.com\n (2603:10b6:a03:c0:cafe::e4) by BYAPR05CA0017.outlook.office365.com\n (2603:10b6:a03:c0::30) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.26 via Frontend Transport; Tue,\n 28 Apr 2026 12:25:48 +0000",
            "from satlexmb07.amd.com (165.204.84.17) by\n CO1PEPF000066E8.mail.protection.outlook.com (10.167.249.6) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9846.18 via Frontend Transport; Tue, 28 Apr 2026 12:25:48 +0000",
            "from amd-MS-7D67.amd.com (10.180.168.240) by satlexmb07.amd.com\n (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Tue, 28 Apr\n 2026 07:25:43 -0500"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 47F964B920B6",
            "OpenDKIM Filter v2.11.0 sourceware.org C3ACD4B920A1"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org C3ACD4B920A1",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org C3ACD4B920A1",
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1777379154; cv=pass;\n b=Edcy1IZMM38I0ZP9wNdQNz4LSxGOel2+rhKEKN8SruIajCe6fPd6krLikPNmoXAx/8M4jCN+JA09sE6f8jRP08zTZ2oSIINBz86P+NiN+3bgypeJM/3CbaYu0qHguv93sSHy3v6b9NKHavDWtjmzXORdqdAi9JXlEVnlh2i7DJc=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=s6YEK2TnDRknjI8Vs4tsTS2IYQjr4v0YJJvHQCr+cO5XPXCI5PTmFgPOBeL9TACHR4mw7aY8KthZMa1R4hd3ktcbYvLgrIiOSvKrcKCVKvwASUuEvNUC89ta1pAQFUiY/nakBmAUdCgobehWBZ3y0ESsFJoCsALfW+fZ5uKGCCIjWl9FsbqEerc03NMgyesbJ0fVJSqN9QovQTetrLHgVrDghP8W20FF3yw4a5fywiyoqeyUsELktqxEPctdGDqloyEE0rQQtUbY/Jnlq6+HllpQYXrz0YdZgGaid838KJHbOHDmDnlbtfIxS/Q2VN4gQF0jyGmnQHSUx1enDk4azg=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777379154; c=relaxed/simple;\n bh=O3Glh+B5ZUbi9VZpx9oGN5Oa1Ce1sNzlgov+lBPjLn8=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=miAyyAzxKnbZQtwPfayyWcuv7BSV63IJCIq5l/Z2S5OlJCXPr/xCyPRnTGV0w5e4eMLcVKvwu5Q5oVVZBejfNaLDknlPl/GupuY2TBmKa6AxusY64NJZ+AByG85uLLALTrdo03+fP1No358H+Gixyh7Tau9n6Lp17oHTbX8+PGI=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=ulzopmM0xxM2hIKhzXvOV6UZW6qRcN7f+RVceZRsQAY=;\n b=S5ico+QK801T1IcS9Ou1owM+aFDTE5U/P1qCyaZ8iLNacfvJ/UhotnfAEYWib6VCdYdzalZFSDbaiKcrvyxYbrZI7XszBYJfYGrBjDZmsgSpDTkXM/o8jeeLLVAZf3RGMwtwMwtnJXEt/Om7XbeBIfTVLRMYnilBemd31l0M9cXHu9FVQvaAwI1KFVRa7xzYKFOJhC5dnDxAfmy8rEipY/73KNh7sajySabth50UFXoqgjn22knGYmuonV2tuZ+lyrcHMXkxw/zcfDJQn3AlAY1dbq5QxC+ZNHuzC5BC5mg+rIcwkrvSo7DOvS0mf6gUSyiEV6j9t5woKWMw8lxoVA=="
        ],
        "ARC-Authentication-Results": [
            "i=2; server2.sourceware.org",
            "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=amd.com;\n dmarc=pass (p=quarantine sp=quarantine pct=100) action=none\n header.from=amd.com; dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=ulzopmM0xxM2hIKhzXvOV6UZW6qRcN7f+RVceZRsQAY=;\n b=Oz1/mItyiyp9ALCfxXCx7Kricx6yg58s4x1mbnMHS4ezkivIBwuwBvm2a3ketLi1qascT9tr9nzwsMaMwGnpUFN2EoRrc9E5CKGnWIpE+NzD/B247SnLR07NRygmQftK7vID4PnGUfl0WwfvlPvtRyrfuniKVGIPAEbCiAhj448=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C",
        "From": "Raghesh Aloor <Raghesh.Aloor@amd.com>",
        "To": "<gcc-patches@gcc.gnu.org>",
        "CC": "<rguenther@suse.de>, <venkataramanan.kumar@amd.com>, Raghesh Aloor\n <Raghesh.Aloor@amd.com>",
        "Subject": "[PATCH v3] BB SLP: Enabling reduction root finding for sum-of-diff\n kind of patterns",
        "Date": "Tue, 28 Apr 2026 17:54:36 +0530",
        "Message-ID": "<20260428122436.1476396-1-Raghesh.Aloor@amd.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<2rs266p1-6216-6173-npq6-3889714r8561@fhfr.qr>",
        "References": "<2rs266p1-6216-6173-npq6-3889714r8561@fhfr.qr>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.180.168.240]",
        "X-ClientProxiedBy": "satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com\n (10.181.42.216)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "CO1PEPF000066E8:EE_|SJ5PPF0170DF9F2:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "1d5e7f5e-ed6b-472f-2a75-08dea5214781",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|82310400026|1800799024|36860700016|376014|13003099007|22082099003|18002099003|56012099003;",
        "X-Microsoft-Antispam-Message-Info": "\n hkC9ooEpZujkTjZclepbcs3y1aZdwRyRYDDn5vBFO0lRDwZIHB1kVz7RXaIy9OjRWtRBv0QcU8bEaUFghXavzfbfQnAJnhkrnZ73eS3Y52JexMHMbyncZ+mIac7rpbomgXH4+K9PHVIfMeKOYmXk5WlfZn90uP8bS9j7q/1SMtN+f4ACkUA/qHke6sWPKc1PsLlKrp0OecdNlY5D89BL2BydAPiAZScqZpC5pk1IFr2FKvMTm2nicTa/pGALHy4soccs5bVf/HlVKRgcO3x+Csx1kuo0MmcRnin38yxqRbQcVeC4P09/uvyUVYJB6tz8yYL3EhNWKLgg58CJcb8nRJnrxgHsGLUFxs2vpb/PbM5Sc3BmW0cJPHUWuosmxxsi0fApL8+070UuCICa6b+h+ksLZZQS35g+MKB65ZuhobQ6kT+gCImb+l+il79aUDOHs5HtuG4EoJ+EIlYCnJXlSMh4zFbYj+l7l/BPvRVb1uW7DyNUJBPw/PT/MorygltXASSkusah2oOja2YUTApqUncr+zmBwV/DAaw6c5cF5Y+cSs/sA2MKu6SSQ7lcR9UPFjKr5023nWuwhw5lOUF568z3A2O3brQmycSFac6u6dhFhyYqmrrYcGpsLUh/0qqtnHtiZ5f9EZrmT7Q4nA/2qWq5mDk6WKWpAb5jy7nkqaslz5hnTSYvd5OeD4GBX1f6XXsNUUVBVIO/bfNvl3snkoCCG89S8opa5RrElwWA97A=",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(82310400026)(1800799024)(36860700016)(376014)(13003099007)(22082099003)(18002099003)(56012099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n Bne7zeE8cJPoDS3Y7hsUxwr8DeNhr7oLln0UBFFHFKxhjxPrwwM7fFZUzGN1cGuSq7YPxnRDYuwwf8F3hzkDo+BXXifymeVDEnqitaN30S/gq1OAD8niFgW4RQ0f4tAqCUH7lKo2GEIzeiLq97YT/4cwHPELCIZa2t69eaEbLsB+cbCJ1B4Svn6aqu3fGfWU3eBMfFr04fHlI4MuvvMDPLy9Uqz8NUypdI7eZqDrqlcMc8Sq++IGUjcaWY6+xcbeFxoE2nAHm7HeRmCgYW8epMkzmCn/M8FjjVHmIxoM6fy66dV8grSm0XJjFPNjQFRiODztb9KsJJ89zgHtiC3Lk8jI7dqslegPMfo4KGLGLyAKDEyiqHWglMz2Ys566HoTsNPM7pIK9Xsv0s5bDJZomSenLmhxduTFrWsiZ+V4o5jpfShufKJtr6A37T+k2rUw",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "28 Apr 2026 12:25:48.3996 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 1d5e7f5e-ed6b-472f-2a75-08dea5214781",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[satlexmb07.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CO1PEPF000066E8.namprd05.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SJ5PPF0170DF9F2",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Add an optional parameter allow_alt_code to vect_slp_linearize_chain\n(default true).  When false, do not follow into MINUS_EXPR when\nbuilding a PLUS reduction chain; treat MINUS results as leaves.\n\nThis will allow \"sum of diffs\" (d_i = a[i]-b[i], sum = d0+...+dN)\nkind of pattern to be recognized and vectorized. Pure PLUS chains\nwill still work; other callers of vect_slp_linearize_chain keep the\ndefault.  Once support for MINUS_EXPR in the chain is added, this\ncall site can be switched to allow_alt_code true.\n\ngcc/ChangeLog:\n\n\t* tree-vect-slp.cc (vect_slp_linearize_chain): Optional parameter\n  allow_alt_code added (default true), check added not to follow\n  MINUS_EXPR, when false\n\t(vect_slp_check_for_roots): Calls vect_slp_linearize_chain with\n  parameter allow_alt_code set to false\n\ngcc/testsuite/ChangeLog:\n\n\t* gcc.dg/vect/bb-slp-sum-of-diffs.c: New test.\n\n---\n[Public]\n\nHi Richard,\n\nI have addressed your comments. Added the target string to the test case, removed unwanted spaces and calls vect_slp_linearize_chain with 'false' set to the parameter vect_slp_linearize_chain. Refactoring the code is avoided for now as you suggested.\n\nThe patch is tested using contrib/check_GNU_style.sh and this version is send via git send-email to avoid any indentation errors.\n\nBootstrapped and tested on x86.\n\nThank You,\nRaghesh\n\n .../gcc.dg/vect/bb-slp-sum-of-diffs.c         | 25 +++++++++++++++++++\n gcc/tree-vect-slp.cc                          | 12 ++++++---\n 2 files changed, 33 insertions(+), 4 deletions(-)\n create mode 100644 gcc/testsuite/gcc.dg/vect/bb-slp-sum-of-diffs.c",
    "diff": "diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-sum-of-diffs.c b/gcc/testsuite/gcc.dg/vect/bb-slp-sum-of-diffs.c\nnew file mode 100644\nindex 00000000000..6236e31289f\n--- /dev/null\n+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-sum-of-diffs.c\n@@ -0,0 +1,25 @@\n+/* { dg-do compile } */\n+/* { dg-require-effective-target vect_int } */\n+/* { dg-additional-options \"-O3 -fdump-tree-slp2\" } */\n+\n+/* Test that SLP recognizes \"sum of diffs\" (d_i = a[i]-b[i], sum = d0+...+d7)\n+   as a reduction chain and vectorizes the basic block.  */\n+\n+int __attribute__((noipa))\n+sum_of_diffs (int *a, int *b)\n+{\n+  int d0 = a[0] - b[0];\n+  int d1 = a[1] - b[1];\n+  int d2 = a[2] - b[2];\n+  int d3 = a[3] - b[3];\n+  int d4 = a[4] - b[4];\n+  int d5 = a[5] - b[5];\n+  int d6 = a[6] - b[6];\n+  int d7 = a[7] - b[7];\n+\n+  int sum = d0 + d1 + d2 + d3 + d4 + d5 + d6 + d7;\n+  return sum;\n+}\n+\n+/* Check that the reduction was SLP-vectorized (REDUC_PLUS appears in the tree).  */\n+/* { dg-final { scan-tree-dump \"\\.REDUC_PLUS\" \"slp2\" { target x86_64-*-* aarch64*-*-* } } } */\ndiff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc\nindex 185ff6fb542..82ab2b7e196 100644\n--- a/gcc/tree-vect-slp.cc\n+++ b/gcc/tree-vect-slp.cc\n@@ -1746,7 +1746,8 @@ dt_sort_cmp (const void *op1_, const void *op2_, void *)\n    filling CHAIN with the result and using WORKLIST as intermediate storage.\n    CODE_STMT and ALT_CODE_STMT are filled with the first stmt using CODE\n    or MINUS_EXPR.  *CHAIN_STMTS if not NULL is filled with all computation\n-   stmts, starting with START.  */\n+   stmts, starting with START.  When ALLOW_ALT_CODE is false, do not\n+   follow into MINUS_EXPR when building a PLUS chain (treat MINUS as leaf).  */\n \n static void\n vect_slp_linearize_chain (vec_info *vinfo,\n@@ -1754,7 +1755,8 @@ vect_slp_linearize_chain (vec_info *vinfo,\n \t\t\t  vec<chain_op_t> &chain,\n \t\t\t  enum tree_code code, gimple *start,\n \t\t\t  gimple *&code_stmt, gimple *&alt_code_stmt,\n-\t\t\t  vec<gimple *> *chain_stmts)\n+\t\t\t  vec<gimple *> *chain_stmts,\n+\t\t\t  bool allow_alt_code = true)\n {\n   /* For each lane linearize the addition/subtraction (or other\n      uniform associatable operation) expression tree.  */\n@@ -1790,7 +1792,8 @@ vect_slp_linearize_chain (vec_info *vinfo,\n \t      && single_imm_use (op, &use_p, &use_stmt)\n \t      && is_gimple_assign (def_stmt_info->stmt)\n \t      && (gimple_assign_rhs_code (def_stmt_info->stmt) == code\n-\t\t  || (code == PLUS_EXPR\n+\t\t  || (allow_alt_code\n+\t\t      && code == PLUS_EXPR\n \t\t      && (gimple_assign_rhs_code (def_stmt_info->stmt)\n \t\t\t  == MINUS_EXPR))))\n \t    {\n@@ -10049,7 +10052,8 @@ vect_slp_check_for_roots (bb_vec_info bb_vinfo)\n \t    continue;\n \t  vect_slp_linearize_chain (bb_vinfo, worklist, chain, code, assign,\n \t\t\t\t    /* ??? */\n-\t\t\t\t    code_stmt, alt_code_stmt, &chain_stmts);\n+\t\t\t\t    code_stmt, alt_code_stmt, &chain_stmts,\n+\t\t\t\t    false);\n \t  if (chain.length () > 1)\n \t    {\n \t      /* Sort the chain according to def_type and operation.  */\n",
    "prefixes": [
        "v3"
    ]
}