From patchwork Fri Jun 23 14:21:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 112161 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5809175vqr; Fri, 23 Jun 2023 07:21:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mdV9Ms3KnUTRS69mSS/E5pkGVG3EYcIqD8sratA9xTgWzXYuLoQ7sRUGMxFXCwb+IJydG X-Received: by 2002:a17:907:6d26:b0:988:2037:c687 with SMTP id sa38-20020a1709076d2600b009882037c687mr15324743ejc.37.1687530101698; Fri, 23 Jun 2023 07:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687530101; cv=none; d=google.com; s=arc-20160816; b=Gu/VBwOFQHqGBwPr1GPDIpQCXG+F7IApDvn8qBGuO/W+z+vecF52cgNj+u01YLZbkJ au8un7otsKfLOK9r4E4OokBZjqcFWMBsEfNmQ9kEtideuaWAXEQoEUk6SC8zbp7ND/ef z77TDjhNDLwCROOpaL3+V3WriIyMLIJy4Gf5bYvgf3u8UpMYcuyXRu5Z/CB5SWDGxSTl U+CSCnbdT13rC/Xa6Za2aTm8QJ2ssozJhTj4YrVXK8fU90lQheysxvrrDh97m0ZLKIs+ c0jN37mE06p9r0jHwoC9oeAL2RyedRpAjwnIhsRL0voYgri62mhmDXqBpwUXT3e/UaL1 zW1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=4sCbRfJ/Jf5L6BMUEle7KpGS8LZAYSFgoOceRtPtBWw=; b=cG88b6BCxtLk8zvge87suWTHMnLX7Akjxmsklja81wSi+PBuSRy8aeKMniybwACyFc ZKWYXAJA7BV5T0D4kHCUK1Jaf6vJ5V7m/bcmjegDfa98+VID6/Sz0Ev8BBpQ/dtMv0R3 8GJJLCJMTqVskrXHbHtarnOJC84D/vgstAmcLSWEwZwviPuTL5dm0DHGQGSo6wDTmTS5 pPxXPhpZHne4nlw9n7ILIeATYsxpbBx7mBmvc/6M2AwJUIAHzutMItL1DADKwv2kfygO S2Vlse2QrnEA29LWZJZ/j7WqPK66nEPF4DgNAKAptiVWUIcoXSLECVy4bJMXYAa6FPmB VW0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id o24-20020a170906289800b00984f07f4333si1251270ejd.429.2023.06.23.07.21.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 07:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BCC7E3857C66 for ; Fri, 23 Jun 2023 14:21:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by sourceware.org (Postfix) with ESMTPS id 3EFAD3858C36 for ; Fri, 23 Jun 2023 14:21:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3EFAD3858C36 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp74t1687530065tw4pvqxq Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 23 Jun 2023 22:21:04 +0800 (CST) X-QQ-SSF: 01400000000000G0S000000A0001000 X-QQ-FEAT: C46Rb8GPIEd/LXjCWreormcid/Tuxm4GWUFYrNrqSOqwTEJg1V4JoWnyOYM/4 gkEReGIH4d1gPaYmr+gh4C4Q+FIXV27sAeZk/4jgoeBhyJATmU1tbCzybYJ7azHLfAXBiE6 9rf4OGWCOaOkZ3QlbLoOiXHMEN9ivZfUxoN0t6m/EqwoNWgA49RkWyTITaMhZQQBGxPvzUF r4MrCgdNdH97RaQ3jH0/GkB7fKH2LkP4SJa+/kmO34b57CL7faW8ikgd78SzvwGrA5Qom0S FE5k71YmZUA972NNE6csH9q3kDF5GzsNl3LLEOvWFcMHrgcOhrtL4L2gU11Iw7sSttgmjgg NdT+k58xMiF7Z9KdC7GWVUTFgUK8i3BE+fRHxaFSC6J+Opa5HwHlkSzrWGHQYjxClVDn1UL X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13124174260719344324 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, richard.sandiford@arm.com, Ju-Zhe Zhong Subject: [PATCH] IVOPTS: Add LEN_MASK_{LOAD, STORE} into 'get_alias_ptr_type_for_ptr_address' Date: Fri, 23 Jun 2023 22:21:03 +0800 Message-Id: <20230623142103.16401-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769503563583128355?= X-GMAIL-MSGID: =?utf-8?q?1769503563583128355?= From: Ju-Zhe Zhong gcc/ChangeLog: * tree-ssa-loop-ivopts.cc (get_alias_ptr_type_for_ptr_address): Add LEN_MASK_{LOAD,STORE}. --- gcc/tree-ssa-loop-ivopts.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/tree-ssa-loop-ivopts.cc b/gcc/tree-ssa-loop-ivopts.cc index 2b66fe66bc7..2eb19406e61 100644 --- a/gcc/tree-ssa-loop-ivopts.cc +++ b/gcc/tree-ssa-loop-ivopts.cc @@ -7563,6 +7563,8 @@ get_alias_ptr_type_for_ptr_address (iv_use *use) case IFN_MASK_STORE_LANES: case IFN_LEN_LOAD: case IFN_LEN_STORE: + case IFN_LEN_MASK_LOAD: + case IFN_LEN_MASK_STORE: /* The second argument contains the correct alias type. */ gcc_assert (use->op_p = gimple_call_arg_ptr (call, 0)); return TREE_TYPE (gimple_call_arg (call, 1));