Message ID | 20220930105003.7C8A813776@imap2.suse-dmz.suse.de |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp420262wrs; Fri, 30 Sep 2022 03:50:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TeqTlQjtFYqAWc8oDPqjx0hX8Si6bRFw+b8MajznXAWUmIVvahLBHMlP4KOT3s5uQjz+/ X-Received: by 2002:a17:906:fd85:b0:77b:b538:6472 with SMTP id xa5-20020a170906fd8500b0077bb5386472mr6128450ejb.48.1664535048086; Fri, 30 Sep 2022 03:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664535048; cv=none; d=google.com; s=arc-20160816; b=ClctuTsX75zz6mFbmdYXle/wp7nAtaawWWlW5A2a0C7zTqsALZSPmgLed2whB53K0D LCmsaJgkUHq/dwM98jXonqbdA0R87TCGzHOVyXLXEaufy+smCZLfqE6FdXpm/Ye1DmyQ besaNAFrUpvHNWSKBwxyP5qkpKhD+bjYP6zkNicIHCBlC2bfsqeSJzH/D6+2Okrk+RrA kPq0kvuC7lMv2naJIoVl5oELhcopNM9dUv/KlQaKV8v/h3jh9tGKSYk7dreKqBop6Rhl fH6sLoKWu+b3q18EByeWm6E6ea5m6rWGO+76mVRJNuzNRRVm+kvClCZPEltA04v3YGDI tH9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:message-id :mime-version:subject:to:date:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=7hFRWXZGcnth8oSHQaXzdKf/Xom3GN4bqhXVahGoNuI=; b=0hUcRi48lXYOmZCT+MOll1KEZ0eGrNlmDVDQErBlmXrBmFzL5x754JWXZqT1b3MdzU 0PyyaR8pbEJ2SEh6c1GGjzsIE2vvRFq2rkCL/bLjajnETkimlqTu6wIaTwuMrCpDFsf8 3z/DWYlVCfLpcyLygQda77WKuB20LcoR1gU3ep4/ia/I/Sk0Gpxze0X2oKbbCuB2GZjN X0fsicdKeCtsVRZP5mXP7sYpw6LPVqw2BvhvJgMCRXJTOTsMSdzGALQHbWAXWVAP+syT jiRWTOml4SrMmQ3rrGR/KkZ8UaX0iHJ0PK3wkbNN+701mAOh5ctyWwDryiyC5hfANfak weFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=nHkbJwPg; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id qw12-20020a1709066a0c00b0073bd9e4e634si1360394ejc.730.2022.09.30.03.50.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 03:50:48 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=nHkbJwPg; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 15274385417F for <ouuuleilei@gmail.com>; Fri, 30 Sep 2022 10:50:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15274385417F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664535047; bh=7hFRWXZGcnth8oSHQaXzdKf/Xom3GN4bqhXVahGoNuI=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=nHkbJwPgzHEhQ2tqhJFELlp4VNuk1/0ZmMa86HKFul7hXw+dHXCTtVjT+bcFseAZZ aQokoYI7vprAvU5tl8trQM+4kd45NAEl113MoI8ifYxIGW1J2ZXpn8Odfl7IYLJuku YHrSTHN/MY9SUgbj9h+MWnlhyQzODUJeHQRtDKKI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A68EC385483F for <gcc-patches@gcc.gnu.org>; Fri, 30 Sep 2022 10:50:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A68EC385483F Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 986D821976 for <gcc-patches@gcc.gnu.org>; Fri, 30 Sep 2022 10:50:03 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7C8A813776 for <gcc-patches@gcc.gnu.org>; Fri, 30 Sep 2022 10:50:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id tF9dHdvJNmMXfgAAMHmgww (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Fri, 30 Sep 2022 10:50:03 +0000 Date: Fri, 30 Sep 2022 12:50:03 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] tree-optimization/107095 - fix typo in .MASK_STORE DSE handling MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20220930105003.7C8A813776@imap2.suse-dmz.suse.de> X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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 <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> From: Richard Biener via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Richard Biener <rguenther@suse.de> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745391502552593326?= X-GMAIL-MSGID: =?utf-8?q?1745391502552593326?= |
Series |
tree-optimization/107095 - fix typo in .MASK_STORE DSE handling
|
|
Commit Message
Richard Biener
Sept. 30, 2022, 10:50 a.m. UTC
We were using the size of the mask argument rather than the data argument for the ao_ref. Bootstrap and regtest running on x86_64-unknown-linux-gnu. PR tree-optimization/107095 * tree-ssa-dse.cc (initialize_ao_ref_for_dse): Use data arg for .MASK_STORE size. --- gcc/tree-ssa-dse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-ssa-dse.cc b/gcc/tree-ssa-dse.cc index 2411ac711de..c14e5e43eb3 100644 --- a/gcc/tree-ssa-dse.cc +++ b/gcc/tree-ssa-dse.cc @@ -170,7 +170,7 @@ initialize_ao_ref_for_dse (gimple *stmt, ao_ref *write, bool may_def_ok = false) { ao_ref_init_from_ptr_and_size (write, gimple_call_arg (stmt, 0), - TYPE_SIZE_UNIT (TREE_TYPE (gimple_call_arg (stmt, 2)))); + TYPE_SIZE_UNIT (TREE_TYPE (gimple_call_arg (stmt, 3)))); return true; } break;