From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) by sourceware.org (Postfix) with ESMTPS id 222F6385B515 for ; Wed, 4 Oct 2023 12:40:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 222F6385B515 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lambda.is Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lambda.is Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 5321B20AB2DF; Wed, 4 Oct 2023 14:40:35 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1696423234; x=1698237635; bh=yRNC3H0NR45RucKQ0By1LvTH0IBUk6NNDUM i984pKec=; b=WhuiYTLhn9jp5DFeETGPsqmcfQI5QioGK84ToM+/uDMkG28nIo4 hkp1PS6DoDNmvv4gDV6aae63pStwBt68elppjwIwygqlKxY2ONs6Mi6C448hcES+ nDjNAt8r3yYFXk8jnXbnO8/JwxWbkPAz1aXnXVnkRWBqmZ9wXAqdvVtEZoptebyF onXyTSAYY/uJRpwWlGfeK/V8gZQbE8JYv8O2xL4iT5HwELg4eCwqprbS6iBfDwu2 kU79KBCfmgVZOKKiDirak6fEi72E87v5vh7N3Od+k5Em2B7ialwAZnr3a9TuV+WU GhrGUeBedYNB8ttrePshYt0efqW9ibE0xDEt8UGyVWkIm+UJTqkam6+bwTOwfw66 TnVX7Z/h4WD6Et9brX2DVP9QUDZQQeXqxsaMHvts5BArF6BZ+5mwvY8s7e98eukB xZqKB6FIv2cDcwwJsxC7nszmELk3Z3Ab+ih5KRr9knZudKq3ZfIfxWEtz/hrH9d4 iaJWEWfiGSTz2x4IaKl/uW1aspAcn/ij4fgI1WBeXQUg5sfhGmqC60E4V2SFwf0I qZ60J4U3rb5nvX1YjyFKuiIYji8ssoeu6P99AsQCB37vwRjDQSsIaTs1l1z6tDr4 WOlQPW/eosjo7xAwND+BmC37/Mb0RFpPlIri2inKS68g9Hnk/UUUkJkE= X-Virus-Scanned: amavis at mykolab.com X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,SPAM_BODY,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id EwGOiruCiRKw; Wed, 4 Oct 2023 14:40:34 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id BB5EC20B3679; Wed, 4 Oct 2023 14:40:34 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id A74653081E50; Wed, 4 Oct 2023 14:40:34 +0200 (CEST) From: =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= To: gcc-patches@gcc.gnu.org Cc: mliska@suse.cz, jh@suse.cz, =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= Subject: [PATCH 06/22] Use popcount_hwi rather than builtin Date: Wed, 4 Oct 2023 21:39:06 +0900 Message-Id: <20231004123921.634024-7-j@lambda.is> In-Reply-To: <20231004123921.634024-1-j@lambda.is> References: <20231004123921.634024-1-j@lambda.is> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Jørgen Kvalsvik --- gcc/gcov.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/gcov.cc b/gcc/gcov.cc index 274f2fc5d9f..35be97cf5ac 100644 --- a/gcc/gcov.cc +++ b/gcc/gcov.cc @@ -46,6 +46,7 @@ along with Gcov; see the file COPYING3. If not see #include "color-macros.h" #include "pretty-print.h" #include "json.h" +#include "hwint.h" #include #include @@ -159,7 +160,7 @@ condition_info::condition_info (): truev (0), falsev (0), n_terms (0) int condition_info::popcount () const { - return __builtin_popcountll (truev) + __builtin_popcountll (falsev); + return popcount_hwi (truev) + popcount_hwi (falsev); } /* Describes a basic block. Contains lists of arcs to successor and -- 2.30.2