From patchwork Fri Nov 26 12:51:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1560135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=HyO66TiY; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J0vm02RhKz9t5K for ; Fri, 26 Nov 2021 23:52:31 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1854D385842F for ; Fri, 26 Nov 2021 12:52:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1854D385842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637931149; bh=IdxBSLE/I6UMoEyTM1eIgxbdzM54e93D7NJWb4vIn18=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=HyO66TiYyNHE6zM8vt/EnMSbcFpi3WRMLFSAMcjnVCizVNECYh7IBJgnSeWIqYJlB a0bE8Y7wdVs0PsHi7qPEBj3Njz27jWspVAk2Ayy4hUSTVrO6i5PjQE7sp5i+JTUvUm C1MhJEfEQI/12LxVLCMRu59iZJXspSK3c9LsI34A= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 5BCB93857C69 for ; Fri, 26 Nov 2021 12:51:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5BCB93857C69 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 5036C2809AB; Fri, 26 Nov 2021 13:51:17 +0100 (CET) Date: Fri, 26 Nov 2021 13:51:17 +0100 To: gcc-patches@gcc.gnu.org Subject: Fix fail in inline-9.c testcase Message-ID: <20211126125117.GI71018@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-Patchwork-Original-From: Jan Hubicka via Gcc-patches From: Jan Hubicka Reply-To: Jan Hubicka Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Hi, it turns out that I made testcase for value range propagation (which was disabled by accidental return statement) but the testcase was confused by partial inlininig. The right number of inlines is 2, since the function in question is first split and then both function and the split part should be inlined since based on value ranges we know that the inlined part will become dead. This patch updates the template. gcc/testsuite/ChangeLog: 2021-11-26 Jan Hubicka * gcc.dg/ipa/inline-9.c: Update template.c diff --git a/gcc/testsuite/gcc.dg/ipa/inline-9.c b/gcc/testsuite/gcc.dg/ipa/inline-9.c index 72ac4aa1b4c..347ad55fb4e 100644 --- a/gcc/testsuite/gcc.dg/ipa/inline-9.c +++ b/gcc/testsuite/gcc.dg/ipa/inline-9.c @@ -20,4 +20,4 @@ main() for (int i=0;i<100;i++) test(i); } -/* { dg-final { scan-ipa-dump "Inlined 1 calls" "inline" } } */ +/* { dg-final { scan-ipa-dump "Inlined 2 calls" "inline" } } */