From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35146 invoked by alias); 22 Jul 2019 06:53:37 -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 35131 invoked by uid 89); 22 Jul 2019 06:53:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=dedicated X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Jul 2019 06:53:34 +0000 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6M6qIGY036776 for ; Mon, 22 Jul 2019 02:53:32 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tw5wnp5ap-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 22 Jul 2019 02:53:32 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 22 Jul 2019 07:53:30 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 22 Jul 2019 07:53:28 +0100 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6M6rRGm30605718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 Jul 2019 06:53:27 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3A611A4067; Mon, 22 Jul 2019 06:53:27 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5F8D1A4054; Mon, 22 Jul 2019 06:53:25 +0000 (GMT) Received: from kewenlins-mbp.cn.ibm.com (unknown [9.200.146.96]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 22 Jul 2019 06:53:25 +0000 (GMT) Subject: Re: [PATCH v3 3/3] PR80791 Consider doloop cmp use in ivopts To: Segher Boessenkool Cc: "Bin.Cheng" , gcc-patches List , Bill Schmidt , Richard Guenther References: <1557803406-123657-1-git-send-email-linkw@linux.ibm.com> <2d897dc2-a01c-5005-6973-aad0c5930aa8@linux.ibm.com> <9d622cb7-2c1f-91bf-a61e-0239aa2ea8bf@linux.ibm.com> <20190722062604.GA20882@gate.crashing.org> From: "Kewen.Lin" Date: Mon, 22 Jul 2019 07:18:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190722062604.GA20882@gate.crashing.org> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit x-cbid: 19072206-4275-0000-0000-0000034F748E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19072206-4276-0000-0000-0000385F94A5 Message-Id: X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg01376.txt.bz2 Hi Segher, on 2019/7/22 ÏÂÎç2:26, Segher Boessenkool wrote: > Hi! > > (Maybe I am missing half of the discussion -- sorry if so). > > I think we should have a new iv for just the doloop (which can have the > same starting value and step and type as another iv). > > Has this been considered? > > I don't have any patches to introduce it. I guess you mean one pre-bind candidate is dedicated to doloop use only? Version 2 introduced pre-bind, but I dropped it as it's invasive to the current selection algorithm. The current implementation is to zeroing cost for doloop use with any candidates and let selection algorithm pick up whatever for it. I think it's fine since doloop_optimize can transform anythings to expected only if it knows the iteration count. Thanks, Kewen