From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A68EC385483F for ; Fri, 30 Sep 2022 10:50:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A68EC385483F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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 ; Fri, 30 Sep 2022 10:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664535003; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=7hFRWXZGcnth8oSHQaXzdKf/Xom3GN4bqhXVahGoNuI=; b=zhAq5MkD3bJh9Mb3ziXcJstkX+XW7SI0mrSkzxC0gUcuBIYqLou82FIW00tNS/Il7uoqHG qHG708E8Zzm6AHpgT1F75SIsGEKY6M3uZ3wwpGCdVkf4YZSgrgekU5seYlAH4PyJS1kxMg ZD/2LYTLwAmlzdALWKkh1QdzahLLmAs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664535003; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=7hFRWXZGcnth8oSHQaXzdKf/Xom3GN4bqhXVahGoNuI=; b=O2WhYJ2UTj/3MXwiA0XbGaPu0R47Re4+LsohAsxgCpybMxi6xe+7+qN8WqoGbFaeMRqgNs vYFYTI5fyCYndtBQ== 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 ; 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 ) for ; Fri, 30 Sep 2022 10:50:03 +0000 Date: Fri, 30 Sep 2022 12:50:03 +0200 (CEST) From: Richard Biener 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 List-Id: 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; -- 2.35.3