From patchwork Mon Dec 25 10:56:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 1880113 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=M/YlwEnt; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=M/YlwEnt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SzFGp6l9Tz20Rq for ; Mon, 25 Dec 2023 21:57:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB9D03858281 for ; Mon, 25 Dec 2023 10:57:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2069.outbound.protection.outlook.com [40.107.22.69]) by sourceware.org (Postfix) with ESMTPS id 8C6383858C20 for ; Mon, 25 Dec 2023 10:56:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C6383858C20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8C6383858C20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.69 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1703501818; cv=pass; b=Sw5VwssUpgGkpP8M6E0X9/iqtEMiPlwqJCCHK/kfMtuMUNHn2Oz8itfWxTci9D+2BMM9PiL1RU+vhoHIBBA4ntsOaIYNTE6fh6eWvv9XZtE8cx/9Q6//EMSTnQw1pDEuWoQssPA1Hk+lqUbV44qBLTYxZlwxcGBJf/KpnWq0kkc= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1703501818; c=relaxed/simple; bh=WQGCtEIsZwwxsizXYKk4p/4pW9u9qkCMGQzDTVjUnOk=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=j4nq3vUR6xPzncZlJP6UhotGTHMX0qHc7RhqhEQ9S5JgEggIuPJFYbn9RF90wQQwVbpx7VezTcc/kXAhVAjo6O3O/KmDfWAAnma5x7vurRtn+HDqEu+khhBa5RAt1sMMrTY/v9vd5f0kmP+dWtrVQ3A+4Ao1PFeDkdokEzDiOBQ= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=dIwDwD1Aci/JRu/pgX75RUNqenfELViWDCx0bDq8heLNHY0lfDRUVEGCfSMEwhowvhYcWuhL17nmyuAKTCfd6oW5H17yMejQadAlemrMO2gQXR+nskPxjnFjI2oatlhXGPBeRo/EXpuzyMY+xDtIv80RMbO8cvleP+H+VYGc5SowUeAaR5PBPUnFOP9aIg8jsoMs9JAyoEcqp4aYzDKG9Y8aumZlUnoTlK/jq9L9TmmhN1Ru546IpoGySe6DhxrJci4TR6ZEal7cT6FSvL02kFZ3VSCbihP15FQLZXm6cEMfoiHKcwLaamYxc+cen71H9H3kNlC/769v4Qp3LIxZ9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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; bh=BJeWNaveKBueopxnoleJhsB+QC+/uK6xBy2N3H6ebK0=; b=bH3kHTfN+CMPCwpEMm4eoR/PZQ6+8DbV11Xal4LgLbyWtNvGiax8p1U1Dv3PODE4lFf+jm0R0wX3n9kCRzRDTqRTcNQ1tLvFZucT2xFeFlTIbkOu28jTe39U19qcsoptldcngLpLCN7GCwrfqL5N29SaXLZcPthNKGbtJ0VeSTDWYWMFDYIBNdFOdXY612Ud4wAE5hFCdA3qM2hl3WLHQD+nboKDdUIGEwqawn1wGYeKwLXKtiqYjtTjSzD52/b6teVxtXDBmYuRRCaumcwLVe7KoeV1koZFtDRkvcuVvqEzmdG34NUpwZAamCsY3MxQmEy0NQQ6cGAoj/Dzlxu/OA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BJeWNaveKBueopxnoleJhsB+QC+/uK6xBy2N3H6ebK0=; b=M/YlwEntQjP+uuZE5rSxkSxSwgWCdpqTh7a+g5b8xWOKmPxLjMJgKlaK4tBes6umf+UbkJv0mGnqbMDuAu8PgW2Pu8FCWQ4eCjLpSdlyEPwSiZ7R7gTKQFcpFvOXO2tcMIqKjQSX0cYgkKTy/30OrsAZolYzDAdjmfXCn9059y8= Received: from DU2P251CA0012.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::8) by DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Mon, 25 Dec 2023 10:56:53 +0000 Received: from DU6PEPF0000B61C.eurprd02.prod.outlook.com (2603:10a6:10:230:cafe::3e) by DU2P251CA0012.outlook.office365.com (2603:10a6:10:230::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26 via Frontend Transport; Mon, 25 Dec 2023 10:56:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DU6PEPF0000B61C.mail.protection.outlook.com (10.167.8.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.14 via Frontend Transport; Mon, 25 Dec 2023 10:56:53 +0000 Received: ("Tessian outbound e243565b0037:v228"); Mon, 25 Dec 2023 10:56:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 95876326567384ca X-CR-MTA-TID: 64aa7808 Received: from dde3bf41276a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C9DE21DC-4B21-4480-8B54-7BCB78E7B129.1; Mon, 25 Dec 2023 10:56:46 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dde3bf41276a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 25 Dec 2023 10:56:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QbrNsgNINuiXoD/YuwIJcLPZXeAWn7EBf4ZeDU9q4Tsxz32F2xM5uho0fGGWP/2gqEkjh0l229N19bWhl0a2IpE1CK63ggqRt6fu4oGCTDNp1EUlj6mLPFW0maqwMSwVirFlgFFWMGQ9gIPc7G3XpoDBkuBVD0xdsC54unffyG8Vf5geGf4lGrRPR9tjrOLiY1hQfHCrBfrCRG+ShTiOo5sG01464j2QtVSeoCnLI5wpSvbKzm3DPHY8ALrSXCEpWy25Ari+WDtjqg12DqKOVY+97d2lvoNeQPWWwiM8RCc9V0EXHFHLFigKLoicnJgazqPiNWCFk00+6D6AOvaASg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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; bh=BJeWNaveKBueopxnoleJhsB+QC+/uK6xBy2N3H6ebK0=; b=Kp3z5egAXbcxIlYi6trlxpBepzepLN4MaL7ihtl+C+/caFxcHZAweJshxed+FG4lWyUsopMLHziGl9UN2IvOpzK4r933cMGJi/jLk+zFnFyYyi7+BuSNoh5d4kf8jS5Kv8RexU4Ix2IwZ4TvVkvjnvDrRMk8wjneop+Nh/aTx98UIUwVAL8nH2vHj4RNWXU8uSDGGSp5aG3oZu2+JblAFkgxhCLX5KVTfoIPsDhGNWuyZP3ZcePDfGe3n7nbkYWLgPI2M0/YOAcxCihb+4QBytfU/37I8dVTohQw8APt05IzGVcxqhJUOj0TBz30OekymyqA+AcafzU2HffU3MjQJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BJeWNaveKBueopxnoleJhsB+QC+/uK6xBy2N3H6ebK0=; b=M/YlwEntQjP+uuZE5rSxkSxSwgWCdpqTh7a+g5b8xWOKmPxLjMJgKlaK4tBes6umf+UbkJv0mGnqbMDuAu8PgW2Pu8FCWQ4eCjLpSdlyEPwSiZ7R7gTKQFcpFvOXO2tcMIqKjQSX0cYgkKTy/30OrsAZolYzDAdjmfXCn9059y8= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by DBBPR08MB6027.eurprd08.prod.outlook.com (2603:10a6:10:20c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Mon, 25 Dec 2023 10:56:43 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9679:2ab0:99c6:54a3]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9679:2ab0:99c6:54a3%6]) with mapi id 15.20.7113.026; Mon, 25 Dec 2023 10:56:43 +0000 Date: Mon, 25 Dec 2023 10:56:38 +0000 From: Tamar Christina To: gcc-patches@gcc.gnu.org Cc: nd@arm.com, rguenther@suse.de, jlaw@ventanamicro.com Subject: [PATCH][committed]middle-end: explicitly initialize vec_stmts [PR113132] Message-ID: Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0341.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18c::22) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB5325:EE_|DBBPR08MB6027:EE_|DU6PEPF0000B61C:EE_|DB4PR08MB8151:EE_ X-MS-Office365-Filtering-Correlation-Id: 60b29285-1e03-4ec5-0c24-08dc05383423 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: vTdiWo9eBUIjrylbxg8QwL3N+pTXRPrnOngSe0Lhejii8wQxGNCohU8NxieoHZ16oJTnVoIddJi2PG68rDxJMNwWGsKTJPaDTtlR1vKJ8T742q7vQQWeAHCwZAsZS2h+jF+GwNAYgwtWJUAqmELDc1C1RQU1RIHOFEud813wsXOHpbQm/yhnMSyS0PzufY6bMOJNfrAqCONpUV7PfWoyFlbfQIfOBns3sAf6spEKvIW+28MNvsWkE68pXoSRoYM/O7eRPaNBwM7aQWInz2v20AlweIic1Ur7HcO9ciwNHximw8DpsDjMJdWhGZEkCLV/dgz8sJdbBftgdkUt/tbqyUnPkC3YFrEJIao5sBfYkTL6zEfL9VGafrOPig5zPyrRe5dRthERtgPa2oDtkTGNT47A962Lzv5dt7zM0iuGt7RpS1U4urtovEJXXah0sl8CwXpHXek00X7vvqaNj453R/15t1ABmjY0SHT9amIxaEIhO8QBGwt6LNKlT+qVEscWmdO4ql63KcMwvGvjomzH8Jf5R2w0gIIaBYquelQ9DND/ylbWQDd3mdpbOWJglZzWDq1agZdBSC1fal7DDf2KlzPI3QCQ7IIpaDOkCWXAmAES1xDdj7yP/kczkD5lACeipusuNF+7Z6qqS603J26o+Q== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB5325.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(39860400002)(366004)(346002)(376002)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(86362001)(6506007)(478600001)(33964004)(44144004)(26005)(6666004)(6512007)(2616005)(6916009)(2906002)(66556008)(66476007)(66946007)(8676002)(8936002)(316002)(4326008)(44832011)(6486002)(235185007)(5660300002)(41300700001)(38100700002)(83380400001)(36756003)(4216001)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6027 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000B61C.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1df0a051-3df4-457b-a40e-08dc05382dc3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qupT0ZUVOtTs00fOfKABia07EBWyRlAEHEucIsOgm+CoPAPfPP7AhNYbujVOgR2MHSLKvWHuUGgld1hebgehgvwp0tVecBafD5IlyOAAc9rViwvxTmi3qt1EZBDdz87pWAM0rM0ApPBzsgyrFJ3jcsPv5fqRBNrEnMryGhT9DdBFZAM67Wg9qU9KTKRdeH75Tfm0ivj4DTnGF/kVi93Ct0UmSvilxH30NzdJtRWZFMeQxtVUwBHdXHJdKorVkGB1E139Cb15P2RgSx6wJ5PUdm0QMKyQ+8pP9ovyx+6HV6A0gBOdrsVDfVs/Dpj0vEycMdsUxMXpeuLNcpV+1VcJwV0SU/z0mpda9MDf3TeGDvm+ZOG8BcKB3Q9cxnCaAT169M79hO6xHSO8xkcoCbyUDFjrQ2LnBtePdQZLD+aIFVujS9rgPkgszfLqr0A7M8DwK3eOHHJAWZs4Lvp4eloG9rNK1A3ONJ+IaTFJjj1VKqRjZ77jmP0I7fPwHx2PPd3JYxsljUqBI/xoz1Rti0pIs9OjwqozkSrnKhXDx62NhkiVBVq9bzLA5W1cek7ptSA7yM5mfY+u2NO+9iFo8k5wPHZ8xa5NYgpBCpveuBRlwK1yg1Ax0Ablfbe9Fr6ob6Tshf6ok83RsK+xpgJa3jPN2UYxUZSyz1yOfclWzsRdlcaTmh9nHE3RaFADHAtmvjZw6WiSzd1d0uw4kAGIp0y8/I2ZJ7Kd/USm/QGjqhIKZXXd4OqYo1wa7IOU6XL8E+X+3nklK/Mp2sLKPcvDnkding== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(136003)(39850400004)(346002)(376002)(230922051799003)(64100799003)(451199024)(1800799012)(82310400011)(186009)(36840700001)(46966006)(86362001)(6506007)(478600001)(33964004)(44144004)(26005)(6666004)(6512007)(336012)(107886003)(2616005)(6916009)(2906002)(70206006)(70586007)(8676002)(8936002)(316002)(4326008)(44832011)(6486002)(235185007)(5660300002)(41300700001)(82740400003)(356005)(81166007)(83380400001)(36860700001)(47076005)(40480700001)(36756003)(4216001)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Dec 2023 10:56:53.0474 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60b29285-1e03-4ec5-0c24-08dc05383423 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000B61C.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB8151 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi All, when configured with --enable-checking=release we get a false positive on the use of vec_stmts as the compiler seems unable to notice it gets initialized through the pass-by-reference. This explicitly initializes the local. Bootstrapped Regtested on x86_64-pc-linux-gnu and no issues. Committed under the obvious rule. Thanks, Tamar gcc/ChangeLog: PR bootstrap/113132 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Initialize vec_stmts; --- inline copy of patch -- diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 88261a3a4f57d5e2124939b069b0e92c57d9abba..f51ae3e719e753059389cf9495b6d65b3b1191cb 100644 --- diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 88261a3a4f57d5e2124939b069b0e92c57d9abba..f51ae3e719e753059389cf9495b6d65b3b1191cb 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, exit_bb = loop_exit->dest; exit_gsi = gsi_after_labels (exit_bb); reduc_inputs.create (slp_node ? vec_num : ncopies); - vec vec_stmts; + vec vec_stmts = vNULL; for (unsigned i = 0; i < vec_num; i++) { gimple_seq stmts = NULL; --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, exit_bb = loop_exit->dest; exit_gsi = gsi_after_labels (exit_bb); reduc_inputs.create (slp_node ? vec_num : ncopies); - vec vec_stmts; + vec vec_stmts = vNULL; for (unsigned i = 0; i < vec_num; i++) { gimple_seq stmts = NULL;