From patchwork Tue Apr 16 05:23:47 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Tamar Christina
X-Patchwork-Id: 1923991
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=oLj+4Nsj;
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=oLj+4Nsj;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org
(client-ip=8.43.85.97; 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 [8.43.85.97])
(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 4VJXXY4yQ1z1yYB
for ; Tue, 16 Apr 2024 15:24:27 +1000 (AEST)
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id EBE273858C50
for ; Tue, 16 Apr 2024 05:24:24 +0000 (GMT)
X-Original-To: gcc-patches@gcc.gnu.org
Delivered-To: gcc-patches@gcc.gnu.org
Received: from EUR05-DB8-obe.outbound.protection.outlook.com
(mail-db8eur05on2078.outbound.protection.outlook.com [40.107.20.78])
by sourceware.org (Postfix) with ESMTPS id 705003858D32
for ; Tue, 16 Apr 2024 05:24:04 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 705003858D32
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 705003858D32
Authentication-Results: server2.sourceware.org;
arc=pass smtp.remote-ip=40.107.20.78
ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1713245048; cv=pass;
b=BnoCVOuRV5H8zXfO/F5lzJSvZKcHcQaR78OBvdkH7FQfWsAHXEW88Ok2+6r5n/JVx13J71keawFzDzVbzx2DxUGRoYk5kspfys/b9sxjScuAkMa6QNnVc7ZEpiAb5BdZ5SU3pihDMK1u6WxaCN+d/AqfsmrrP1UBL6igKfmdtu8=
ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key;
t=1713245048; c=relaxed/simple;
bh=pt1cjDQqFveJJJ8mnfgemIhuUWkq7pet6uBUKHogAc8=;
h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID:
MIME-Version;
b=eQXQlByEh0XghPSFa2XQcr/R0vLRTeE8KoMPfSZfG04NtvbpHFfNLVjmNtzK+Ysg+KBoW95a7fmu6DFK39nBVkXAlKAmYw1cHzRiiqWxpeAjBc38BR+uTmiAAhYmCX2sKEmLS4NFj4CfDY6E8+2fWwHZbsmX4ezBz2uWJqzaU4w=
ARC-Authentication-Results: i=3; server2.sourceware.org
ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass;
b=dHX3vHfhdWm3CEOH4ofevuu55k2pAgY7yHAyvRC5Olo7OTgaTEVcH5NmG72Q1CAX10gIWaPVWx/QGl/CdhRP+g5VaIjMZ+R6z/p4vFn7R+O4gMFUSVmm6jf513dc7IKBeLa93HwsInKleSt254/5I2SgaZTLZIu7HJ04O3/8DIUzjhH7f28Rrcdoz8MuG+fB1CSoThxqPUNscG5n3r38MLKD2KjlpxX4+LCsAeelRVB5EwoOwDZ8OvUbZ66ulJ8d00r0/Ywww2t/TxT0UGXIyMA1/2g2kGEYSIKGQNv6kopVUNewdPpmjtVCm/94nQpDItmqLhKYyFE3W407zfwr7Q==
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=Yb7YDwKc76T7evHF876TbVOUtZikEfcu5Ud2vp+gHHA=;
b=XANevXjVESIhBWd8A5zzyZBm08vvUKYMvJ9Y4f+/ePfE4tYX2Guub157XIHnMK33Yg9I13yccg+heIj4PZinHlaH5zwcWMjzDjhnEorj+onlizW5pEutF793lDm7k00K8/hqSrot1A80VY8hxDnsXkSX7vXGPTnRw+0UumRzfBBhWuT9XaJmEo6s2SrTvLO0Rh/xuOgBIlZFBi4DQK7Ye1XMvTfI+7f6MtTbZ1C1vVKOrUObO5+7FfDTWDtmt/e3YU64w1fWLQE7eaqbOTCEXCx+tFwiDnE8LjOyTdpLNTqnpuWwtpBAZJQ8V3ENkeh+ZgxzVKj07eQMkBEZ0MxR9w==
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=Yb7YDwKc76T7evHF876TbVOUtZikEfcu5Ud2vp+gHHA=;
b=oLj+4Nsjm1He33ux6Z3muu1G9deJi1W2UMSxYql0u5QFTWF3meFNggOg27VARs/d8RnjLszaqRaED4T5q/a5QRY/0vqZzxmvtYpUD62HLdeKqvHvs0JkxeOYzZlTDWDwOiU/syC72nja8qM7pKy2VXrD7enNujKtYINMtCR4tKM=
Received: from DUZPR01CA0237.eurprd01.prod.exchangelabs.com
(2603:10a6:10:4b5::20) by DB9PR08MB9514.eurprd08.prod.outlook.com
(2603:10a6:10:452::12) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr
2024 05:24:01 +0000
Received: from DU2PEPF0001E9BF.eurprd03.prod.outlook.com
(2603:10a6:10:4b5:cafe::c9) by DUZPR01CA0237.outlook.office365.com
(2603:10a6:10:4b5::20) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.34 via Frontend
Transport; Tue, 16 Apr 2024 05:24:01 +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
DU2PEPF0001E9BF.mail.protection.outlook.com (10.167.8.68) with
Microsoft SMTP
Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via
Frontend Transport; Tue, 16 Apr 2024 05:23:59 +0000
Received: ("Tessian outbound 93e51b94fd50:v313");
Tue, 16 Apr 2024 05:23:58 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 5519678fa5d519ec
X-CR-MTA-TID: 64aa7808
Received: from f47ab0b9ef7c.1
by 64aa7808-outbound-1.mta.getcheckrecipient.com id
088BDF22-6B02-4383-9039-66BA93D32647.1;
Tue, 16 Apr 2024 05:23:53 +0000
Received: from EUR05-VI1-obe.outbound.protection.outlook.com
by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id
f47ab0b9ef7c.1
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384);
Tue, 16 Apr 2024 05:23:53 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=ZNdIEAGVN0pKNrmQkLMaop7wJ2qfikGCOvQ5GYL4mtyUH3vM8hknndEHs3PnFfDYSpcRCF24XGgMnhWZdaTWszuXAAGYFQ2/ke/VaCFJXnU2aiHnqc4BDqNjjCqYIoDW4GgDytBtloOPXadJt0EbK3enGqTtKDOXDP5ACniFIFCw2y5+nakDeYjs4qFxKTY0/VSf6zJ8qG3WinrCjceSJSwjrT1trIyrJYeX/B0rhVZh+tvJHa7NTshHzHUrn4P/UTeotR8kL8P1KJvWlKruoVJRqRFWxJ1+eqa8m+SUVYJZRxaRDVoRbvxdPKmf5L21XcqtsY5eWNtrXC9OErS8bg==
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=Yb7YDwKc76T7evHF876TbVOUtZikEfcu5Ud2vp+gHHA=;
b=J+IWMgx3TxVSqYFCZFBjW0NAR8eF8pfIlUZBGN71SL910dv7p8pDS8fjAWzmchyuiUZSygTM8vtbl/0MRPPaz018K68/kje/aLwYXKgT/OysBzy5AqKw2R748fCRtvuza9XtyBwyE7Zs+GQq35IMqoJZKvtZU3teF2OGmZL/p8KPzUmNLSdVymnDOPWX2k3HG/l2xs408GCZblT9rOjQxPBeL8Z/YmF6r8pajmefeM8SjN2Hlkfil5iavGi+NidjdvjET/IayuyVG1j07XrZmde7IVM1xNTf1niMc3NDQRv2Joq0T4In+/h0KrOkBUpEVjwfLBLz7xYpKifJ7rOUhA==
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=Yb7YDwKc76T7evHF876TbVOUtZikEfcu5Ud2vp+gHHA=;
b=oLj+4Nsjm1He33ux6Z3muu1G9deJi1W2UMSxYql0u5QFTWF3meFNggOg27VARs/d8RnjLszaqRaED4T5q/a5QRY/0vqZzxmvtYpUD62HLdeKqvHvs0JkxeOYzZlTDWDwOiU/syC72nja8qM7pKy2VXrD7enNujKtYINMtCR4tKM=
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 PAVPR08MB9137.eurprd08.prod.outlook.com (2603:10a6:102:30e::11)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr
2024 05:23:50 +0000
Received: from VI1PR08MB5325.eurprd08.prod.outlook.com
([fe80::a0e:800c:c8b2:5ff0]) by VI1PR08MB5325.eurprd08.prod.outlook.com
([fe80::a0e:800c:c8b2:5ff0%4]) with mapi id 15.20.7452.049; Tue, 16 Apr 2024
05:23:50 +0000
Date: Tue, 16 Apr 2024 06:23:47 +0100
From: Tamar Christina
To: gcc-patches@gcc.gnu.org, rguenther@suse.de
Cc: nd@arm.com
Subject: docs: document early break support and pragma novector
Message-ID:
Content-Disposition: inline
X-ClientProxiedBy: LO2P123CA0041.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600::29)
To VI1PR08MB5325.eurprd08.prod.outlook.com
(2603:10a6:803:13e::17)
MIME-Version: 1.0
X-MS-TrafficTypeDiagnostic:
VI1PR08MB5325:EE_|PAVPR08MB9137:EE_|DU2PEPF0001E9BF:EE_|DB9PR08MB9514:EE_
X-MS-Office365-Filtering-Correlation-Id: cd86a003-af10-46d5-7d2f-08dc5dd56baf
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:
xTPOuHvtE0xf/wcToPWQdf5Ef3GvsTRb7Uwfj2r5zi8mCATDyTcLR3QxH43WBbuAwMrJdtPFXUDQC2jj0LRoXo3Lh+b5pgrIQ7YAAZDe6sRRsPAM43v/rG29nNLLIITmvoieHN7YflS1WcwKv704moFU+qVRcZ5s8PsjUqUaeQkFNYcMHbPNrPeEcAQ6W6vTVfi5Ci+RowhiRVgkjWfHSsOuplG33M7vqaVTbCuzEVjK/wWuif1kjQPG1hFk3XdaoJ2OSDwZwAJy+H2YDBUy/YzxkTYnR1NiynMb4uJXn7mkLMOQGFOKnbJjzNdCgEXYQHtPrQsYSdVn3EEOUWeQ71zhEeMgJDFLhAgg33vOAFAcGI/4KyBYhHT4HBPEccCCuS34NA3i5g0CspHkT4PFsEe0D5ACJtImlynb77FVSJzVTdUs7VtfyNKYI9y8iUpGagkdwrVh4r0KG5u2pRgjATI3T9JwZVh27k5WhoI6aXQ+f3M9Dw2evL5y07eO3F6VI0MS1So3V5TMz2MRQyFdJh1oAOT7ndfEL2jH5paMJ0d4RxFA94Mqg5vuRohxl0Pvw/C4HHXGo9ksVu7Le7dS3tEE7odLhvnSBc07Km8Ereo=
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)(376005)(1800799015)(366007); DIR:OUT;
SFP:1101;
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9137
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:
DU2PEPF0001E9BF.eurprd03.prod.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs:
4c712581-b318-4dcf-7c4f-08dc5dd565e0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
OKM5JWCI1wkedfD7urwO7CPiPg3ZGTJx5TJztMSSm/MuxzKb0fa3/95MeznlzK3PTanjqocj9sIWJDf5PKVg2ySwiUZ9CJSKF97mD8XiCMTpDsWRdojDOIClotBSd85yFLXgcdfQm13nLOR7pOgYAJA8LEA+5b3bWRJneqoIGmZnb/Vcy6V1Gh3VJbD8wdLX3KkN1HdyW6g9ibt0nFBhYG5DNgVyZB/6XU43d1HT4kvyaar4SfUA/MlgJ3MXprWnYyMX4D4SpBwrAxiN43chp274hhZoQ9BP2raFZtr0Vc8VyX6xE7LD1MYQOb+ufoDSCuiJpZ4n/2ph+zl2vKEigXWHH6qnr+CrJln5+JvOcYxNSiHnyqsRUqaFntqq/ePgBvcd/gZJBQN9zeUYVTnu9QxE5D3a4bFJdKeY6ANxqMBWUlQ4vlBRrs+t8+CTjDt0H8x6vvdBQStEJnkLh9xFVEJdkHKGweuKGLqudCZw5rVUdPEQ+jKvLoOzZsFrgPshtfPWQqFs2J5uoU2ufUtxS+k1/FSL/sZc0VmOgv3BhoU9HlR6uK2k2MZDAJaG2dBy/h6YZq+Ds8r84UJiMP+7auoGWL+gsoxoNyiFRlXkFkadw01Ge5i6bgsh9Kf69C4Yiu9nYC5ViDb+qm8z9CsOoaIxbuMyOAqOCX5rafy4pG3cD356Mo8dyaS89Tr6JTgCgI7XRjDOATMx7k4gKKSbXQ==
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)(36860700004)(1800799015)(82310400014)(376005); DIR:OUT;
SFP:1101;
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2024 05:23:59.5847 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id:
cd86a003-af10-46d5-7d2f-08dc5dd56baf
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:
DU2PEPF0001E9BF.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9514
X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_PASS, SPF_NONE, TXREP,
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
docs: document early break support and pragma novector
---
--
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index b4c602a523717c1d64333e44aefb60ba0ed02e7a..aceecb86f17443cfae637e90987427b98c42f6eb 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -200,6 +200,34 @@ a work-in-progress.
for indicating parameters that are expected to be null-terminated
strings.
+
+ The vectorizer now supports vectorizing loops which contain any number of early breaks.
+ This means loops such as:
+
+ int z[100], y[100], x[100];
+ int foo (int n)
+ {
+ int res = 0;
+ for (int i = 0; i < n; i++)
+ {
+ y[i] = x[i] * 2;
+ res += x[i] + y[i];
+
+ if (x[i] > 5)
+ break;
+
+ if (z[i] > 5)
+ break;
+
+ }
+ return res;
+ }
+
+ can now be vectorized on a number of targets. In this first version any
+ input data sources must either have a statically known size at compile time
+ or the vectorizer must be able to determine based on auxillary information
+ that the accesses are aligned.
+
New Languages and Language specific improvements
@@ -231,6 +259,9 @@ a work-in-progress.
previous options -std=c2x
, -std=gnu2x
and -Wc11-c2x-compat
, which are deprecated but remain
supported.
+ GCC supports a new pragma #pragma GCC novector
to
+ indicate to the vectorizer not to vectorize the loop annotated with the
+ pragma.
C++
@@ -400,6 +431,9 @@ a work-in-progress.
warnings are enabled for C++ as well
The DR 2237 code no longer gives an error, it emits
a -Wtemplate-id-cdtor
warning instead
+ GCC supports a new pragma #pragma GCC novector
to
+ indicate to the vectorizer not to vectorize the loop annotated with the
+ pragma.
Runtime Library (libstdc++)