From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14376 invoked by alias); 13 Jan 2014 17:24:00 -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 14231 invoked by uid 89); 13 Jan 2014 17:23:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qe0-f54.google.com Received: from mail-qe0-f54.google.com (HELO mail-qe0-f54.google.com) (209.85.128.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 13 Jan 2014 17:23:58 +0000 Received: by mail-qe0-f54.google.com with SMTP id cy10so1384221qeb.27 for ; Mon, 13 Jan 2014 09:23:56 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.49.28.101 with SMTP id a5mr41597048qeh.70.1389633835927; Mon, 13 Jan 2014 09:23:55 -0800 (PST) Received: by 10.229.134.199 with HTTP; Mon, 13 Jan 2014 09:23:55 -0800 (PST) In-Reply-To: References: Date: Mon, 13 Jan 2014 17:24:00 -0000 Message-ID: Subject: Re: [PATCH] Add zero-overhead looping for xtensa backend From: Sterling Augustine To: "Yangfei (Felix)" Cc: Felix Yang , "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-01/txt/msg00740.txt.bz2 On Thu, Jan 9, 2014 at 7:48 PM, Yangfei (Felix) wrote: > And here is the xtensa configuration tested (include/xtensa-config.h): > > #define XCHAL_HAVE_BE 0 > #define XCHAL_HAVE_LOOPS 1 Hi Felix, I like this patch, and expect I will approve it. However, I would like you to do two more things before I do: 1. Ensure it doesn't generate zcl's when: #define XCHAL_HAVE_LOOPS 0 2. Ensure it doesn't produce loops bodies that contain ret, retw, ret.n or retw.n as the last instruction. It might be easier to just disallow them in loop bodies entirely though. Thanks!