From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70361 invoked by alias); 15 Jul 2019 14:31:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 70097 invoked by uid 89); 15 Jul 2019 14:31:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Jul 2019 14:31:28 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x6FEVPCB009698; Mon, 15 Jul 2019 09:31:26 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x6FEVOfQ009697; Mon, 15 Jul 2019 09:31:25 -0500 Date: Mon, 15 Jul 2019 14:41:00 -0000 From: Segher Boessenkool To: Martin =?utf-8?B?TGnFoWth?= Cc: Xiong Hu Luo , gcc-patches@gcc.gnu.org, hubicka@ucw.cz, wschmidt@linux.ibm.com Subject: Re: [PATCH v2] Generalize get_most_common_single_value to return k_th value & count Message-ID: <20190715143124.GD20882@gate.crashing.org> References: <20190715082043.24541-1-luoxhu@linux.ibm.com> <622d5e32-f430-2b07-2902-463f8770e984@suse.cz> <20190715141701.GC20882@gate.crashing.org> <20155b46-2d75-0902-a864-1740c1fd8762@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20155b46-2d75-0902-a864-1740c1fd8762@suse.cz> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg01064.txt.bz2 On Mon, Jul 15, 2019 at 04:23:18PM +0200, Martin Liška wrote: > On 7/15/19 4:17 PM, Segher Boessenkool wrote: > > Is that enough? Can there be two entries with the same count as well > > as value? > > Yes, it can happen very unlikely in a multi-threaded instrumentation, > but it will not make a problem. It will result in different sort order on different hosts, then. Is that okay here? Does a different order here not lead to different compiler output? (Consider the case where you copied the data files between hosts). Segher