From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 7EEB7382CB88 for ; Wed, 14 Dec 2022 15:20:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7EEB7382CB88 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=none smtp.mailfrom=kam.mff.cuni.cz Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 0C57A280891; Wed, 14 Dec 2022 16:20:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1671031202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jJEk1hBjIKEJl3PMd0K0+F8/4VVnMG7Nk8sztt7n0/M=; b=MusiaAlaHW67JnISCzKGYrjNWQlxIUICzy4ur2Faq4kdHXayEYiOYbD89X9Pu9SE/PyFgx kNpuFRyBgznAXkh1mPEZdojw6gfSygG7vbdwYxbH2JSElj0z4N0uPmk2vaUdndCOrcrrN5 uqV+E+3b9xWrXyOTv8hNsZ+tpqAeCkA= Date: Wed, 14 Dec 2022 16:20:01 +0100 From: Jan Hubicka To: Martin Jambor Cc: GCC Patches Subject: Re: [PATCH] ipa-sra: Consider the first parameter of methods safe to dereference Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Hi, > > Honza requested this after reviewing the patch that taught IPA-SRA > that REFERENCE_TYPEs are always non-NULL that the pass also handles > the first parameters of methods, this pointers, in the same way. So > this patch does that. > > The patch is undergoing bootstrap and testing on an x86_64-linux right > now. OK if it passes? > > Thanks, > > Martin > > > gcc/ChangeLog: > > 2022-12-14 Martin Jambor > > * ipa-sra.cc (create_parameter_descriptors): Consider the first > parameter of a method safe to dereference. > > gcc/testsuite/ChangeLog: > > 2022-12-14 Martin Jambor > > * g++.dg/ipa/ipa-sra-6.C: New test. OK, thanks a lot! Honza