From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22466 invoked by alias); 26 Jul 2007 16:22:39 -0000 Received: (qmail 22455 invoked by uid 22791); 26 Jul 2007 16:22:39 -0000 X-Spam-Check-By: sourceware.org Received: from mail2.panix.com (HELO mail2.panix.com) (166.84.1.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Jul 2007 16:22:34 +0000 Received: from mailspool3.panix.com (mailspool3.panix.com [166.84.1.78]) by mail2.panix.com (Postfix) with ESMTP id 518EA3482D; Thu, 26 Jul 2007 12:22:22 -0400 (EDT) Received: from moria.site (pool-70-104-131-212.nycmny.fios.verizon.net [70.104.131.212]) by mailspool3.panix.com (Postfix) with ESMTP id 5E6AF1696F; Thu, 26 Jul 2007 12:22:19 -0400 (EDT) Date: Thu, 26 Jul 2007 16:40:00 -0000 Message-Id: <87ejivjft5.fsf@moria.site> From: Kenneth Zadeck To: volodyan@gmail.com, abel@ispras.ru, gcc-patches@gcc.gnu.org, Ayal Zaks Subject: [PATCH][Modulo-sched] Avoid SMS when the candidate loop contains INC instruction Reply-to: Kenneth.Zadeck@NaturalBridge.com In-Reply-To: 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 X-SW-Source: 2007-07/txt/msg01931.txt.bz2 > Hello, > > We decided to break Patch 1 of 2 into sub-patches and insert them > gradually. (http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01515.html) > > This is the first one which avoids performing SMS when the candidate > loop contains auto-increment instruction. > > The testcase attached is inspired from array_constructor_12.f90 testcase. > > This patch was bootstrapped and tested on ppc64 with -fmodulo-sched > flag. (all languages except Ada) This really cannot be the right thing to do. If you have a loop that you want to modulo schedule, you should expand the autoinc insn back into two insns. If you really find some reason why you do not want to do that, then you should not run the auto inc finding pass when you enable modulo scheduling. Kenny > > :ADDPATCH modulo-sched: > > OK for mainline? > > Thanks, > Revital > > 2007-07-26 Vladimir Yanovsky > > * modulo-sched.c (sms_schedule): Avoid loops which includes > auto-increment instructions. > > * testsuite/gfortran.dg/sms-1.f90: New test.