Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 79253 invoked from network); 16 Apr 2007 17:46:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2007 17:46:51 -0000 Received: (qmail 1598 invoked by uid 500); 16 Apr 2007 17:46:54 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 1570 invoked by uid 500); 16 Apr 2007 17:46:54 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 1561 invoked by uid 99); 16 Apr 2007 17:46:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2007 10:46:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [128.174.252.3] (HELO dcs-server2.cs.uiuc.edu) (128.174.252.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2007 10:46:46 -0700 Received: from [128.174.237.75] (hod.cs.uiuc.edu [128.174.237.75]) by dcs-server2.cs.uiuc.edu (8.13.6/8.13.6) with ESMTP id l3GHkP4e001798 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 16 Apr 2007 12:46:26 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Naveen Neelakantam Subject: Re: [drvm][jit] ABCD does not eliminate upper bound check Date: Mon, 16 Apr 2007 12:48:23 -0500 To: dev@harmony.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org I can take a look, but I suspect that the problem is caused by the loop peeling pass. Can you post your modified emconf file? Or can you tell me which passes you inserted classic_abcd between? Thanks, Naveen On Apr 16, 2007, at 12:39 PM, Maksim Ananjev wrote: > Hi! > > I tried to apply new ABCD optimization path to the following code: > > int[] array = new int[10]; > int l = array.length; > for(int i =0; i { > array[i] = i; > } > > However the bounds check on the assignment inside the loop was not > eliminated. > > I used the patches from here: > https://issues.apache.org/jira/browse/HARMONY-1788 > > I unzipped files in vm.zip and added them in > jitrino/src/optimizer/abcd/ folder. Then I applied > abcd_update_1_full.patch. Then I added "classic_abcd" to opt.emconf > > But according to log file upper bound check cannot be proved > redundant. That's strange because this case looks rather obvious. > > May be I did something wrong in applying the patch? Or ABCD really > cannot deal with such case? > > -- > Maksim