From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18507 invoked by alias); 30 Nov 2013 04:19:44 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18451 invoked by uid 89); 30 Nov 2013 04:19:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ie0-f177.google.com Received: from Unknown (HELO mail-ie0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 30 Nov 2013 04:19:42 +0000 Received: by mail-ie0-f177.google.com with SMTP id tp5so17301457ieb.36 for ; Fri, 29 Nov 2013 20:19:34 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.43.138.148 with SMTP id is20mr33499232icc.23.1385785174509; Fri, 29 Nov 2013 20:19:34 -0800 (PST) Received: by 10.64.65.196 with HTTP; Fri, 29 Nov 2013 20:19:34 -0800 (PST) In-Reply-To: References: Date: Sat, 30 Nov 2013 10:06:00 -0000 Message-ID: Subject: Re: GCC-4.8.1 - loop optimizations From: Ashwath Kumar Chandrasekaran To: Jonathan Wakely Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00232.txt.bz2 I have used the following configuration Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc_4_8_1/configure --prefix=/opt/gcc --with-gmp=/opt/gmp-5.1.3 --with-mpfr=/opt/mpfr-3.1.2 --with-mpc=/opt/mpc-1.0.1 --enable-languages=c,c++ --with-cloog=/opt/cloog-0.18.0 --with-isl=/opt/isl-0.11.1 Thread model: posix gcc version 4.8.1 (GCC) I tried using using -floop-block and -floop-interchange optimization flags on simple program with for loops. I don't find any difference in the optimized assembly code that is generated. I have enabled O1 optimization level and disabled all the flags. I have only enabled -floop-block and -floop-interchange. Should I enable any more options for this to work? On Fri, Nov 29, 2013 at 5:23 PM, Jonathan Wakely wrote: > On 29 November 2013 22:32, Ashwath Kumar Chandrasekaran wrote: >> Are graphite loop transforms implemented in GCC-4.8.1. > > Yes. > >> Should I configure and build GCC in a different way. > > You didn't say how you configured it, so noone can say if you need to > do it differently.