From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 931E53858D33 for ; Tue, 27 Jun 2023 14:00:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 931E53858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687874448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m7dgiladFeThgr03/HlMhl7g7ZQIXPOxa1Ky/k3J2is=; b=GxFOiH2Pts+NuLuS8bY338XCQyvrmBnSr4QjTcCKpGsfwvnwrcUmePEwkoTUy6HVjpJ7Ii OZfb4oYrf8JgNhtV6gfM9h8XnFuSZO3OXZ6Gd4gaoXhc01J9ymqUlLo+NbhQZux5ZM8uxr q0Sw0UvtOfL1l2WesV7GcTrNfkLlJJE= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-494-Jo0lDwn2MRa2SJNvAZpZXg-1; Tue, 27 Jun 2023 10:00:34 -0400 X-MC-Unique: Jo0lDwn2MRa2SJNvAZpZXg-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4008e5f1dfbso37179751cf.0 for ; Tue, 27 Jun 2023 07:00:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687874434; x=1690466434; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m7dgiladFeThgr03/HlMhl7g7ZQIXPOxa1Ky/k3J2is=; b=ULPELywhrN392s9vEf+RdyefyWASzaYgrGTTZP1gAwGQybLumc8ThtgM1FwtP1ed1F I0uzqOmwB+Ns902Uf4i1I2PRRq7NChMfTVVAwSDPtZKyVWNhgPwRbQZw76F5OAnGbDK/ 8OXjZmpUYG3IftcEmLu3ZQoII6rXNBRDdhuhWflGkXFqtSu25NYdY/VyfzPw8OLG960E UBWivC34tm13IX0Ro2u4q3H3FhQYeCWwTyz9rjY8NTYPfS5Pz+JJii56GU3UsC748tiE up7X0IxcbEaoOzvH57q6hcqzuwhti7rDQjGpi15VQKwEExW5ACiPr4I/3LjY4OLFHLaM UCfQ== X-Gm-Message-State: AC+VfDz3+sYhjFxqBZchOUxxZSBdZnv4XeUQMtSME2sEiJMwta3vplka dpXhMaew/l8EswEJcI1Wc3NNKv3fgoMDaggs/YagFdlkU0Pkhb/DgHjuxB3hAdakjP4vUFCGJ0J W618itdB1yYkcsj35nQ== X-Received: by 2002:a05:622a:13cc:b0:3f3:95a7:a5ac with SMTP id p12-20020a05622a13cc00b003f395a7a5acmr36763645qtk.51.1687874433501; Tue, 27 Jun 2023 07:00:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cU0zBT+kKWwcHG6aoRClBrt7TeJ5C4fSwCwL2JtwLBdfnG6cM7krqCTTM+wnZTAZU8Xe/rw== X-Received: by 2002:a05:622a:13cc:b0:3f3:95a7:a5ac with SMTP id p12-20020a05622a13cc00b003f395a7a5acmr36763611qtk.51.1687874433193; Tue, 27 Jun 2023 07:00:33 -0700 (PDT) Received: from ?IPV6:2607:fea8:51df:4200::ca58? ([2607:fea8:51df:4200::ca58]) by smtp.gmail.com with ESMTPSA id g21-20020ac84695000000b003f72236e150sm4555137qto.33.2023.06.27.07.00.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jun 2023 07:00:32 -0700 (PDT) Message-ID: <4d2f5bc2-c4ff-7576-cb82-b6c8a1a1da5f@redhat.com> Date: Tue, 27 Jun 2023 10:00:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Enable ranger for ipa-prop To: Jan Hubicka , aldyh@redhat.com, mjambor@suse.cz, gcc-patches@gcc.gnu.org, jwakely@redhat.com References: From: Andrew MacLeod In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 6/27/23 09:19, Jan Hubicka wrote: > Hi, > as shown in the testcase (which would eventually be useful for > optimizing std::vector's push_back), ipa-prop can use context dependent ranger > queries for better value range info. > > Bootstrapped/regtested x86_64-linux, OK? Quick question. When you call enable_ranger(), its gives you a ranger back, but it also sets the range query for the specified context to that same instance.  So from that point forward  all existing calls to get_range_query(fun) will now use the context ranger enable_ranger (struct function *fun, bool use_imm_uses) <...>   gcc_checking_assert (!fun->x_range_query);   r = new gimple_ranger (use_imm_uses);   fun->x_range_query = r;   return r; So you probably dont have to pass a ranger around?  or is that ranger you are passing for a different context? Andrew