From patchwork Fri Jan 12 02:25:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 187548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1859282dyi; Thu, 11 Jan 2024 18:26:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3Kcnfqjx3gKosUy2mnA6pz/4HapnQMQj0LlmzAeLbh7HJG6gjJ2szhbvg1iDcjbNsMTWt X-Received: by 2002:a05:622a:170f:b0:429:c662:f13d with SMTP id h15-20020a05622a170f00b00429c662f13dmr742400qtk.91.1705026392171; Thu, 11 Jan 2024 18:26:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705026392; cv=pass; d=google.com; s=arc-20160816; b=JLDowZLt6+w3ZthoLYv4aNq44cFPwH0dNxF+Nal9y4os8QVOCSEKnTGJSwwce/ruh6 OTOC7S/IljO/kUpb7ac9axXs77IO3fXEzM0jXsFfIdj9PwAWqFtMwY/RlNqcxcN3yVIm t0YAjjW+qKUmrfgYLv+WbLNmJqxNE9ILUQq763wyH/0unoAvMybWvUivCNSeWiqyMCop 1fw26WlM5Ym5E0VIqokolobn+5cV7145BKS3dwYyaPNZ7VeOzLnt+MZU57cx1bOZKFSP VR/TgrqLG2Svz92sVUhtu4Lotj+E4/yJp9d9gn/V+7OyN6rPXqRKH74/lpuaSZk86sN9 L0GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=07xIbXCSOC1Sc3/EPXCoNAg5lnEJ13Rr7wlhVluppiA=; fh=M9HM6ASxJ13myMyxe6+D5Y8nbneXlY5qT/Udj6S6pN8=; b=qKDYcQJdGqJxNCqRsUQnLtRx5qO4sfBtXuIjzzsTzBwswjnApRIN4+Ir3WSgZLQjhX tftevmEpZyCbg53s5SptHOsjQrGebTg7TlvigugdBX7fp/ZCBqyUqumJQnIzIMt3vNXG hbl9Rwbul5NLpffb83ivmVKlhrjO2S1i0Vafp+xZPQ0onpZMMJG8kND7iLUCbRPHj7eq CDM3RjzAACBK7neUsLYGPqQfj35brBYmOpzx13oOht1wiW2FcYaSIUn6tLf3L2EA/Xc1 s1acfF0RuvzBoYuMUy/Yi4hLvL7gIIPMQQw0Mz+REvEPJwI4F+H+N51waBwRz0SnJR5m CIZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Hcl1+dBr; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l21-20020a05622a175500b00429c6fd6428si1968519qtk.601.2024.01.11.18.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 18:26:32 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Hcl1+dBr; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DB2243858412 for ; Fri, 12 Jan 2024 02:26:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by sourceware.org (Postfix) with ESMTPS id 65E853858D3C for ; Fri, 12 Jan 2024 02:25:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65E853858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 65E853858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705026350; cv=none; b=eWckkr6Ze730KJo/PNvKiusjcjbfE4YOTs8uQXPPQlknJR0rtaiWG9sycia9vA9gvA1Q2YMny5v+CXJB+2xVemUiKAhUfo8TPQN23WQ7vVnCXrF3tC2bZyE85ISuvoeZciU6d6lEr6zWgPa6+q5UOXSn0QFrv1xW61uEQNuXzu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705026350; c=relaxed/simple; bh=66d0XKTqI+okLGmGr8JSkIyW9tedTTirG1qpUTfQNEw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=kPtxi8zm3HU7ROY4/QR4eOEXHd7cm7HXrSoKVBD4dml6SYV6CYyCw0KjeZgF36T46+CXy5Pra6ySkduOIcsU7joKwq6S7dnz1Y7qeocie6HY1uY/wESe90ViiNpH8/Trt8DTXEi/jdyY0cnHelW3VaY+l5DMy9uBAz5jMfwAenI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705026348; x=1736562348; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=66d0XKTqI+okLGmGr8JSkIyW9tedTTirG1qpUTfQNEw=; b=Hcl1+dBrEZrYV+HU5Xa9n2wBaN4kXhgndknEKhAjQk4A8/Z/jq+205jw IjMG3zy1kO49gk9ONCA7kiBkow3/hkYyPHUzBxIUNVwq3cGTo2/MHvwA4 1peStWr5HT5hhjTRGO8Qsf7mB0cYHpDNUeztqiirDnDxTn/fbHTSXpwTJ AmoWUgyEYSK2FllkD6goUdvXshKk/wxfFFzkXtFL05yYmjvT+rbXROIKT EM/dmyE9RsDbpAIwCQ/5QEaSEtyclrMuqbBzWktmzJ0yNQ2+sE5Hns225 3urhwaErjR2eo3BoEdAr0fRoP9e83Uqykrbef3jEvxLDY+DGTdfCtb3kQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="5824507" X-IronPort-AV: E=Sophos;i="6.04,188,1695711600"; d="scan'208";a="5824507" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 18:25:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="1029774997" X-IronPort-AV: E=Sophos;i="6.04,188,1695711600"; d="scan'208";a="1029774997" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga006.fm.intel.com with ESMTP; 11 Jan 2024 18:25:44 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 51A201005675; Fri, 12 Jan 2024 10:25:43 +0800 (CST) From: Haochen Jiang To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com Subject: [PATCH] i386: Remove redundant move in vnni pattern Date: Fri, 12 Jan 2024 10:25:43 +0800 Message-Id: <20240112022543.1380261-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787849754429935959 X-GMAIL-MSGID: 1787849754429935959 Hi all, This patch removes all redundant set in vnni patterns. Ok for trunk? Thx, Haochen gcc/ChangeLog: * config/i386/sse.md (sdot_prod): Remove redundant SET. (usdot_prod): Ditto. (sdot_prod): Ditto. (udot_prod): Ditto. --- gcc/config/i386/sse.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 532738dcf94..acd10908d76 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -16174,7 +16174,6 @@ operands[2] = lowpart_subreg (mode, force_reg (mode, operands[2]), mode); - emit_insn (gen_rtx_SET (operands[0], operands[3])); emit_insn (gen_vpdpwssd_ (operands[0], operands[3], operands[1], operands[2])); } @@ -29963,7 +29962,6 @@ operands[2] = lowpart_subreg (mode, force_reg (mode, operands[2]), mode); - emit_insn (gen_rtx_SET (operands[0], operands[3])); emit_insn (gen_vpdpbusd_ (operands[0], operands[3], operands[1], operands[2])); DONE; @@ -30780,7 +30778,6 @@ operands[2] = lowpart_subreg (mode, force_reg (mode, operands[2]), mode); - emit_insn (gen_rtx_SET (operands[0], operands[3])); emit_insn (gen_vpdpbssd_ (operands[0], operands[3], operands[1], operands[2])); } @@ -30857,7 +30854,6 @@ operands[2] = lowpart_subreg (mode, force_reg (mode, operands[2]), mode); - emit_insn (gen_rtx_SET (operands[0], operands[3])); emit_insn (gen_vpdpbuud_ (operands[0], operands[3], operands[1], operands[2])); }