Message ID | 20241106114613.2972987-7-tejas.belagod@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WEr0AvIC; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=WEr0AvIC; 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 4Xk3NJ5BpLz1xyW for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 22:47:28 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E9AEB3858404 for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 11:47:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2062f.outbound.protection.outlook.com [IPv6:2a01:111:f403:2606::62f]) by sourceware.org (Postfix) with ESMTPS id 402873858C56 for <gcc-patches@gcc.gnu.org>; Wed, 6 Nov 2024 11:46:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 402873858C56 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 402873858C56 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2606::62f ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893615; cv=pass; b=mlNDLXHOtfVnizVl3hiT3WcGHcjgdoxgZdiI965ek3XirdJNcOUhQFfOXVFdwvbOMDt7K9AlBiY9Ca/CeOHzOPOQ4HdBsAS2x6MKoyQUEnefeerl/u5rkrmclupWgf010m83+yB3eV3XmHJNCLYQ/AlH1OOtJB+CC1A3hfKdBHo= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893615; c=relaxed/simple; bh=+9q4DjXY61vZA8bIrSodCxk8iu3CDs8MGGFtht7mnoU=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Dvmr23qks+u8w807b9zGYgVdqWYNEf3rFhUvxI/j+5ZkQ1fP0gSVjwhkxYuHH8md8BIpFB4B//HUi7Ng7Gpwa3tG8muSXbD+dKsDAAc4I4cqym4ab0Xwk8+evgVkXwcoEuNd+i8BFami0XpYQdZ97miwyS4jebmmBB8xhYL8EMk= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=lLZi9u/whrtaY91C1uQrsZqdThB99IIa7nSccQGnPTS6vG49+98xoIEI0mp3kBgp5/VHi4o/vQOENHXY7S1luIFUbZMrMhVVUxmfQHrMGLQUpLaCoJfY+fDzQkCDzZW3FgSPGLvLEqWVVoV1fQ36cwbcsGcK6F2o3Wc6zcNdvxl9DS8rnbTq+K0pAwaBZXXY5+6mH9mIoDCLU+3rNTeaR8DbAB5U3H4xt9DacuCunHtqp+MMjFUC82hggY/N1u8BnygxuRqm1dypBtZ9MOul1mVTBI6Ix4IqBKLTPb63PMLg7wWCGx5TlnA9CTlomZDlRnHNuUrXudu38pXZr/uCZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Wz+6iBgQ6F+2OYoCSckIQ8Br8NuZtKA34ws9G7Fxtgk=; b=usrHShUca35tIuUOyIUar63jBvfIwcQlsAv652gNx/Z4bhJbts9zJurEoMTlNYFSraONlhEUAq91+U+Bmoplo7uVgPyoRqkCqMfLzQ+gVrV2IXne2AtKAjOLJGzaJYdr+ZIk6OpfZkQ7dBZsbUTGAbP8l+jjHFzTKMJUAZtzgJf8ZvH3JP4Yn1PWonLw5E/S+RwuZFxJ9BAwkRas4d2CxEnWS9PuM2hPlL2KPUDBcwQYIi486LCokgKvHEn/ew/PUAgNkSlULiI8ioDUpbTr0xc/2MVHOQ2W8/FFYEz3nrgTKY6Gfn5983925gR/uph9hzu2++syJAQ2cVyZiGPe+g== 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=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wz+6iBgQ6F+2OYoCSckIQ8Br8NuZtKA34ws9G7Fxtgk=; b=WEr0AvICjwVEKxADN4E4MY8GgIlAeRxHPT3jYmVAv6+souGLe5W9qjKtODOfOQvED4wWxRt2AKyZO4gX7li/ReTS9m375+tpQuu+MKIDqdWaUQGpeAAyOgywpociDcFKnvg3diNCpvHrzmiVtlVbc9PmTfReT9rltFLQQeyd8eY= Received: from DU7P190CA0025.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:550::32) by AM8PR08MB6419.eurprd08.prod.outlook.com (2603:10a6:20b:316::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Wed, 6 Nov 2024 11:46:42 +0000 Received: from DB5PEPF00014B8E.eurprd02.prod.outlook.com (2603:10a6:10:550:cafe::5e) by DU7P190CA0025.outlook.office365.com (2603:10a6:10:550::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Wed, 6 Nov 2024 11:46:42 +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=arm.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 DB5PEPF00014B8E.mail.protection.outlook.com (10.167.8.202) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:40 +0000 Received: ("Tessian outbound 4a86a9c66651:v490"); Wed, 06 Nov 2024 11:46:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3c2ffc8e9a3f6e77 X-TessianGatewayMetadata: c7ZP/+9dumkDiVl3OKAUVJ/5N1aYrGv/hYcT9118SYxiFUdNrlKqbkxfKkkwJ9gmS3syOgsyY1J5Pk7ZxN5svUkmTJrH8w7CAUyUSM7REJ/iYbUIHVcH5OCLwIt1CxA4O3XSNNoxdxXdWBp9t0Abrdaq53w1YgmW5vSEiaiQGh8= X-CR-MTA-TID: 64aa7808 Received: from L0ebb93e2d248.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7CFDFF63-1A66-46E6-80EE-2126A2CA5B78.1; Wed, 06 Nov 2024 11:46:34 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L0ebb93e2d248.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 06 Nov 2024 11:46:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ENb7DFONe8s3KInamU9ukZVaTk3IxYbBUsz6AfjeHoo3zMxchSNeDMVr9tFdE5MICxsVuX8HsjzmRGwpCgsRoVmua2VbtZooF6FzPJeOE1iuB8xWn/dMete3RJjBbDd1bgq3g9ajDc9p3Se8fba9xBSp7N6zbSIyxSBRBjDkuEWEsmVZL/WCfR1fG7ZFPkrYibIQsVG0NkYkWsmKJqjvocEPX0NfLg47iXJfiX0PIFjJMvxN7nhQw17ymzSrCkslNAG2kI8UREf/0d7qF4efy4w/7xsqKROeJeMvo2sCIlFElIYbvX9+67IszMM2z5YHa0CBMTeu7Jyj2AH69lJuig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Wz+6iBgQ6F+2OYoCSckIQ8Br8NuZtKA34ws9G7Fxtgk=; b=c/7i3Ccx6GSeQzBY2uSqRGJW+fLdcIgyctXxMRNu3Y1hOVe3M0O+7WK+/8BI7pgOPA+CQrte9fhJmbWZcSBpMjvwblbGZ/KowtCOG+puwLB3G02w1bWaAil9TSyEd9vtUCbNkStyEDVx0swUod2JpejMz9GaRqHv48bk5/4s/bLTwPFgQGT80tRSrqjWSEbjI+b6rPI+uCJ+V6aDUvNZDw8UjxBxIePkmKTMnmAM7D5rd+cNeJs3ZsYrFnzbBoTaZNoqekllXpcwu7hailt1ePuLIGlk2ClI7yS4LZZe9jXYN2rbSf3/wPY4a7TGLVLXnA5dLCaV2/5R4o1oLKZSlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wz+6iBgQ6F+2OYoCSckIQ8Br8NuZtKA34ws9G7Fxtgk=; b=WEr0AvICjwVEKxADN4E4MY8GgIlAeRxHPT3jYmVAv6+souGLe5W9qjKtODOfOQvED4wWxRt2AKyZO4gX7li/ReTS9m375+tpQuu+MKIDqdWaUQGpeAAyOgywpociDcFKnvg3diNCpvHrzmiVtlVbc9PmTfReT9rltFLQQeyd8eY= Received: from DU7P191CA0017.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:54e::25) by VI1PR08MB10029.eurprd08.prod.outlook.com (2603:10a6:800:1c6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Wed, 6 Nov 2024 11:46:29 +0000 Received: from DU6PEPF0000952A.eurprd02.prod.outlook.com (2603:10a6:10:54e:cafe::95) by DU7P191CA0017.outlook.office365.com (2603:10a6:10:54e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Wed, 6 Nov 2024 11:46:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DU6PEPF0000952A.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:29 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:28 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:27 +0000 Received: from a078660.blr.arm.com (10.162.46.14) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 6 Nov 2024 11:46:26 +0000 From: Tejas Belagod <tejas.belagod@arm.com> To: <gcc-patches@gcc.gnu.org> CC: Tejas Belagod <tejas.belagod@arm.com>, <richard.sandiford@arm.com>, <josmyers@redhat.com>, <jason@redhat.com>, <polacek@redhat.com> Subject: [PATCH 06/10] rtl: Validate subreg info when optimizing vec_select. Date: Wed, 6 Nov 2024 17:16:09 +0530 Message-ID: <20241106114613.2972987-7-tejas.belagod@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241106114613.2972987-1-tejas.belagod@arm.com> References: <20241106114613.2972987-1-tejas.belagod@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF0000952A:EE_|VI1PR08MB10029:EE_|DB5PEPF00014B8E:EE_|AM8PR08MB6419:EE_ X-MS-Office365-Filtering-Correlation-Id: e33553e1-f0f7-45e9-3d54-08dcfe58add4 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info-Original: LlZm1zQmQ8BRIGKWesT66Nn6ahd+6NzrhdedncGP/q2AmNLoyqR4Qzz7EOahT/E2lg5CPybtojE28Izm4wSDIdVIPe6l9tjOUDeM1bMr0PQKUNK/sO8hVwLo/QMU8bYw5uQlm9LuLlkA9DL03DS7+eAs+EOU2dJs/gLuLtX9IKRa3e8ZX2A8lnu+sNqkFezBS5tqn0mn7VyhBtb1Ntwg0IFsV1tqu51Xwj8lFsjZDYoLhJM71aR3thk/o3RNMVGQY/dlW8XEAN5f4UfhsIVVyJ2mNOrq9XB9S3a6rNd/VstqR6GMkwq6WKSotQBhfqmz1nv3bIFjh/JzcAzyCLLmWubbeQ1lleNjKc1CslXKb4xkNiG3HFU16vdgJ03rjnP9aRKrUPslIrYOXoEsLsvXhG2o8JiARxq3lqosglsM3u5gb8Uy/9QXcRWUeM1xjLdo6yNK8qiX+ZylG8762XfAMcFqXB9fnrDXmnjyrHTYvvuBG/4HgOL+SPXdS4YLY36I3HlMF4McLA+SBgL7yFs3uU5OnSQN/osOmLmQdaD1d4Be3xvCw0xnykxrwz1c9nhI3WACj0j8JXWW7y6jAX6UFanjYGN2eW30b9lRNUAGNCbZRo2/aaRlDcevyCTaxc222ogch14NCw5xoUiFNQzw6I8nsX5ZIQMxDe7peiZLxHOhYdr/A6qz+hdM3KZm7KdjlA47KARGgMo+e3cOE0ukesDqevqgZP6ePaVMO8mvE8ihmzu2d/cwUhgQ/7glRDQYSkC+hoWODGHVas3likBsoTDZsfrw42Y1BODc5036OOXlp+5ORtZ7KrR2IJ4wQH9zBxGZxzEn/DsI1PVYlXp6NdNEcs1AlQ9N6W5wMF1LPj9DNoo+I9knxRFuZsR9/jG6Eq8di0/g36L26ZNn0YU/DPlAvpJkquGnKCP0IV0fL9/rpBew3NH7cKshO+V45r3Cy3yxgV25C9bZPSdmoQItGS2FjJjGAv0AOgcSlZS8UnSOrBlPaR5sNd/Pjonc43xhmsTRpvBFKhPaDBr8dxkjjcITVX88mIFdT7LXUf9O88eidvPxe52EC/IidpRZdfPxCO/3lw48xKnJ0f9S3hmqwq86r26j+HJ6PEXbl35TlA9U/QrayVBWc4L2Fi3eez0dbDwPR13ZDqoYSrH7iZdg2JbBcJRvoWVwK587g3aqkjthky0pe+PTip+AtzPs/XNvpIwbZ41G3dO3EbN9nnmZDyZploYZlt4F7VFu2a4o+mqhwNNATUxhKcPW4gNic2W7S7KFLx3mWR4LFLoxxge2zUvJK/6OeAYrEIqevpSWN0I4F9noI/VDwrLAienSHs1eMBvBfSZGZmHhrGtO0GhwNlO9gn6s1waDWB9TChYsbjyTaXNlClmimonKg6fF1oabt2ng5rs4phuLdlCiKkpEvQ== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB10029 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:54e::25]; domain=DU7P191CA0017.EURP191.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ac4d4bb2-0a99-46bf-27d6-08dcfe58a6f9 X-Microsoft-Antispam: BCL:0; ARA:13230040|35042699022|14060799003|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: jNZRFjmH5A22TUuQujagcOAFsGZzlUSv/Sal/jqtLTBF7AQlNC1z2svgbKdB0Z6+GQ57ZNUKFaZiu8DyCwzDCKg4GEYUhyyKty8cqzEb+f9c9zAnKOTsIwKop2wiRFKMDTpEwL3vJEZGVKynAayuT5fac4UKorpee5+tksYreK53pyqgs8JxWa+s5nav2eRbw43sUrsXsp/eLSbqBLfpBIPhHwFySIj71+uj5MWllhLNi06T+0PN7YfQqoluc/sIiuGvv+hTpVrqcf12Tf0+gArLyRFE1MphndDm/pIMDyGZU/QX0ywt5oLugE1btlEMhIqCDfnzHP2cy2U0xUjDF5EX+g95FV0GTactUdZTQazOIvOO1T51ibITaoV3j5tssncAM/PavC0zE27A3kcTu5j++oNs9R+dWBTKyoMvby+dufsYPD7DSi+OqLVeDqXOO3NI50BL5OWbSHMQsgAf8qsNs1LOwqoZWaDKz7h3TY92oE+R9PfyheNOUB419lB923w9PQthdQrlechnaGGiyiJ5jwT0O3AS1kLBAHgeWcOtg3yLwSQiYFb6pXoH0kR3UjKlKc+fnyNSkg9YO0ky3papqFMzv2DnLgM+2DWC9EPuozuAJWhKo/XZxduniXYfWR8t8d9G8NtgWdx/xMPQE1PYMDx0z3eXbGxEtiwEOrENGzPX4TI1FSg8ytLOyQnd9UG2dOMaPV1lUCyKdSFK7PkqcrKzNbIg4qaFEdbwPhuWgEsWBw/g8Mr022b0OGZwYSljmMNKOdDuIhR6zHOnA0MtzlzKOd1Zh71+EiMgY04GATGmdRKgyidjQ42LfOO9WhD48zYXhsvSMgwLasipQkw1hcuYcHoBusIGIhCK4djyYkiEFCq65O7B+U3qnNR8pRiSK/jUAP/10p0PSOPMaQk/1PaFISyFsgKR8FT4jL6xKZhQvXptaB1p/MQvgylguFvJkC8A1SXdj0CbK8CBlbAy12qCJ9HB0bLd6Ie0rvPdAWs3cUFrNvLoNhFjR2FON6TKRCLbUjiTZVr2EaTmuHXoA+JTpgfJm7LHMbh2LAkEFTaTBIgpk4uKxMMMhFM/6suMDA0xfJCwDg8/9vQI180UbX7wHfOm5t43hm2znepKnx8c7vJKeaWP1bCfBAaY1iqgaHAN13/3Vpzxd0eMtQbp7xWJzGOuxPWfaTYsJiA0I7XvZyeN5GHJBE6Ben3oPV6EvxENmwhajQklJBjwz/oNjUIh6ZtxTYOxxWFm6NXiu18qdoZubNa5GbC6Jl4IEnDA2J0EcHw9khMidwt9y+l4hA82qZIAucc+NBbnhTKoh0NRxkvB+1wQodvymI/nqf6Asj5vsrYSQ6cfNgTWFAiqgcXwgKprgyuG4lZKN0Dv2Hwcn0PiON9+/NEoOH5uEkoyknX8gPTgvfrhlMTTIA== 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:(13230040)(35042699022)(14060799003)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 11:46:40.6400 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e33553e1-f0f7-45e9-3d54-08dcfe58add4 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: DB5PEPF00014B8E.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6419 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>, <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>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
aarch64: Enable C/C++ operations on SVE ACLE types.
|
expand
|
Tejas Belagod <tejas.belagod@arm.com> writes: > When optimizing for NOPs in case of overlapping regs in VEC_SELECT expressions, > validate subreg data before using simplify_subreg_regno. There is no real > SUBREG rtx here, but a pseudo subreg call to check if subregs are possible. > > gcc/ChangeLog: > > * rtlanal.cc (set_noop_p): Validate subreg constraints before checking > for overlapping regs using simplify_subreg_regno. OK, thanks. I think this can go in as an independent fix. Richard > --- > gcc/rtlanal.cc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc > index cb0c0c0d719..b58401e8309 100644 > --- a/gcc/rtlanal.cc > +++ b/gcc/rtlanal.cc > @@ -1686,6 +1686,7 @@ set_noop_p (const_rtx set) > } > return > REG_CAN_CHANGE_MODE_P (REGNO (dst), GET_MODE (src0), GET_MODE (dst)) > + && validate_subreg (GET_MODE (dst), GET_MODE (src0), src0, offset) > && simplify_subreg_regno (REGNO (src0), GET_MODE (src0), > offset, GET_MODE (dst)) == (int) REGNO (dst); > }
diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc index cb0c0c0d719..b58401e8309 100644 --- a/gcc/rtlanal.cc +++ b/gcc/rtlanal.cc @@ -1686,6 +1686,7 @@ set_noop_p (const_rtx set) } return REG_CAN_CHANGE_MODE_P (REGNO (dst), GET_MODE (src0), GET_MODE (dst)) + && validate_subreg (GET_MODE (dst), GET_MODE (src0), src0, offset) && simplify_subreg_regno (REGNO (src0), GET_MODE (src0), offset, GET_MODE (dst)) == (int) REGNO (dst); }