Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 79304 invoked from network); 8 Feb 2007 07:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 07:51:31 -0000 Received: (qmail 81200 invoked by uid 500); 8 Feb 2007 07:51:38 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 80762 invoked by uid 500); 8 Feb 2007 07:51:36 -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 80751 invoked by uid 500); 8 Feb 2007 07:51:36 -0000 Delivered-To: apmail-incubator-harmony-dev@incubator.apache.org Received: (qmail 80748 invoked by uid 99); 8 Feb 2007 07:51:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 23:51:36 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ustczz@gmail.com designates 209.85.132.241 as permitted sender) Received: from [209.85.132.241] (HELO an-out-0708.google.com) (209.85.132.241) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 23:51:26 -0800 Received: by an-out-0708.google.com with SMTP id b2so423178ana for ; Wed, 07 Feb 2007 23:51:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=d7EcXBVOQPVEVfY7qt+76orGHS01WH+NBenjVClGv5bU0JOcZoUAWphYDLakYy3N+oRqPD5+1wcSTMnQunrSYqWygOjusjMk5t74zfXyVnGq1PW5TV3SkSsrr1LX0cx74tRw4co/OTieMvQ4pzpYugUlDdSfM1yVT94patJETE4= Received: by 10.100.143.1 with SMTP id q1mr4435794and.1170921065515; Wed, 07 Feb 2007 23:51:05 -0800 (PST) Received: by 10.64.233.16 with HTTP; Wed, 7 Feb 2007 23:51:05 -0800 (PST) Message-ID: <6342af3e0702072351w64aa4bfdle29cae5fcd9546e9@mail.gmail.com> Date: Thu, 8 Feb 2007 15:51:05 +0800 From: zouqiong To: harmony-dev@incubator.apache.org Subject: [Drlvm][Opt]How to avoid instrumentation's effect on Reg-Allocation? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15778_33500299.1170921065456" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_15778_33500299.1170921065456 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, guys, I instrument during code selector pass, however, I find that my instrmentation affects the register allocation. For example as follows: mov %ebp, eax add 0xc, eax mov $0xe1f0f4,%ebx mov (%ebx),%edx mov $0xe1f0f4,%ebx subl $0x10,(%ebx) mov %eax,(%edx) mov 0x8(%esp),%eax mov %eax,0x4(%edx) movl $0x9a0000,0x8(%edx) mov 0xc(%ebp,%eax,4),%ebp The code in yellow backgroud is my instrumentation. And we can see that EAX is loaded from the stack in the instrumentation. It's bad. I don't want my instrumentation doing it. Can someone tell me how can i avoid it? Thanks, Qiong -- Best Regards, Qiong,Zou ------=_Part_15778_33500299.1170921065456--