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: 48184 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D1F43857C4B for ; Fri, 26 Nov 2021 12:52:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D1F43857C4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637931137; bh=IdxBSLE/I6UMoEyTM1eIgxbdzM54e93D7NJWb4vIn18=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=kaPRyLN271l0qtmWvvSBAy0qrSiHNvnwel6Zzox+xYvw+LBPw+/Yl+N8DbjUnv7HZ 2wbpr6GcZsdZhuYbMVB+Ms0zj7yyvfrm1xGw7ZKoo1AFyD3wRxDG/VeRuHYB9oExby cwB4Rf/vFcJweIbI6DzglLJn4jiWuu1sLRHSKFSY= 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+patchwork=sourceware.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" } } */