From patchwork Sun May 8 05:02:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Revital1 Eres X-Patchwork-Id: 1419 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:51:48 -0000 Delivered-To: patches@linaro.org Received: by 10.224.184.145 with SMTP id ck17cs20760qab; Sat, 7 May 2011 22:02:48 -0700 (PDT) Received: by 10.227.199.19 with SMTP id eq19mr5710867wbb.75.1304830967479; Sat, 07 May 2011 22:02:47 -0700 (PDT) Received: from mtagate1.uk.ibm.com (mtagate1.uk.ibm.com [194.196.100.161]) by mx.google.com with ESMTPS id m28si13367266wej.142.2011.05.07.22.02.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 07 May 2011 22:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of ERES@il.ibm.com designates 194.196.100.161 as permitted sender) client-ip=194.196.100.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ERES@il.ibm.com designates 194.196.100.161 as permitted sender) smtp.mail=ERES@il.ibm.com Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p4852jF3018392 for ; Sun, 8 May 2011 05:02:45 GMT Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p485400M2654442 for ; Sun, 8 May 2011 06:04:00 +0100 Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4852jJE002702 for ; Sun, 8 May 2011 06:02:45 +0100 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4852iSK002699; Sun, 8 May 2011 06:02:45 +0100 Subject: =?UTF-8?B?W1BBVENILCBTTVMgMy8zXSBTa2lwIERFQlVHX0lOU04gaW4gbG9vcC0=?= =?UTF-8?B?ZG9sb2/igIvigIvigIvigItwLg==?= X-KeepSent: CBC2816B:0BE2BBC3-C225788A:001B4A13; type=4; name=$KeepSent To: gcc-patches@gcc.gnu.org Cc: rakdver@kam.mff.cuni.cz, Patch Tracking , zaks@il.ibm.com X-Mailer: Lotus Notes Release 8.5.1 FP3 May 24, 2010 Message-ID: From: Revital1 Eres Date: Sun, 8 May 2011 08:02:43 +0300 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 8.5.2FP1|November 29, 2010) at 08/05/2011 08:02:51 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Hello, (sorry for multiple copies of this email) This small fix was inserted to skip DEBUG_INSNs while recognizing doloop pattern in loop-doloop.c file. It's a fix for the already approved do-loop patch (not in mainline yet, http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01718.html) in loop-doloop.c The patch was tested together with the rest of the patches in this series and on top of the patch to support do-loop for ARM (not yet in mainline, but approved http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01718.html). On ppc64-redhat-linux regtest as well as bootstrap with SMS flags enabling SMS also on loops with stage count 1. Regtested on SPU. On arm-linux-gnueabi regtseted on c,c++. Bootstrap c language with SMS flags enabling SMS also on loops with stage count 1. OK for mainline? Thanks, Revital Changelog: * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn instead of PREV_INSN. --- loop-doloop.c 2011-05-07 16:08:27.000000000 +0300 +++ loop-doloop_new.c 2011-05-07 16:07:48.000000000 +0300 @@ -151,7 +151,7 @@ doloop_condition_get (rtx doloop_pat) inc = XVECEXP (PATTERN (prev_insn), 0, 1); } else - inc = PATTERN (PREV_INSN (doloop_pat)); + inc = PATTERN (prev_insn); /* We expect the condition to be of the form (reg != 0) */ cond = XEXP (SET_SRC (cmp), 0); if (GET_CODE (cond) != NE || XEXP (cond, 1) != const0_rtx)