Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 24321 invoked from network); 31 Jan 2007 15:23:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 15:23:27 -0000 Received: (qmail 56664 invoked by uid 500); 31 Jan 2007 15:23:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 56646 invoked by uid 500); 31 Jan 2007 15:23:33 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 56637 invoked by uid 99); 31 Jan 2007 15:23:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 07:23:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 07:23:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0278C7142E1 for ; Wed, 31 Jan 2007 07:23:06 -0800 (PST) Message-ID: <8485513.1170256986007.JavaMail.jira@brutus> Date: Wed, 31 Jan 2007 07:23:06 -0800 (PST) From: "Mikhail Fursov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2984) [drlvm][jit] More peephole optimizations implemented: IMUL and AND+CMP->TEST In-Reply-To: <26017212.1168608807521.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikhail Fursov updated HARMONY-2984: ------------------------------------ Attachment: peephole_2.diff The updated version of the optimization. All asm parts replaced with C versions > [drlvm][jit] More peephole optimizations implemented: IMUL and AND+CMP->TEST > ---------------------------------------------------------------------------- > > Key: HARMONY-2984 > URL: https://issues.apache.org/jira/browse/HARMONY-2984 > Project: Harmony > Issue Type: Improvement > Components: DRLVM > Reporter: Mikhail Fursov > Assigned To: Alexey Varlamov > Attachments: peephole.diff, peephole_2.diff > > > This patch adds 2 new peephole optimizations > 1) IMUL 0, 1, 2 or power of 2 is simplified to ADD, MOV or SHIFT. This can not be done in HLO because these constants appears during HIR->LIR translation > 2) AND, CMP, JZ sequence is simplified to TEST, JZ > Linux guru, please check min/max bit asm functions in my patch. What do you think, should we use platform independed but slow algorithms here instead of asm? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.