From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22448 invoked by alias); 1 Aug 2007 13:49:30 -0000 Received: (qmail 22438 invoked by uid 22791); 1 Aug 2007 13:49:30 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Aug 2007 13:49:24 +0000 Received: by rv-out-0910.google.com with SMTP id f5so133396rvb for ; Wed, 01 Aug 2007 06:49:22 -0700 (PDT) Received: by 10.141.85.13 with SMTP id n13mr266447rvl.1185976162686; Wed, 01 Aug 2007 06:49:22 -0700 (PDT) Received: by 10.141.163.7 with HTTP; Wed, 1 Aug 2007 06:49:22 -0700 (PDT) Message-ID: <649555d50708010649n4fa492fo15f9d666db14d33@mail.gmail.com> Date: Wed, 01 Aug 2007 13:49:00 -0000 From: "Pranav Bhandarkar" To: gcc-patches@gcc.gnu.org Subject: [RFC] Patch to keep CSE from removing a necessary load MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13044_24527549.1185976162676" X-IsSubscribed: yes 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-08/txt/msg00039.txt.bz2 ------=_Part_13044_24527549.1185976162676 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 383 Hi, Subsequent to the following discussion http://gcc.gnu.org/ml/gcc/2007-07/msg00878.html I have the following patch. It gave no regressions with the GCC testsuite on my port ( private port) and a proprietary testsuite. Thanks, Pranav ChangeLog * lower-subreg.c (remove_retval_note): Remove REG_EQUAL note too if it exists in an insn containing REG_RETVAL note. ------=_Part_13044_24527549.1185976162676 Content-Type: application/octet-stream; name=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f4tvaicy Content-Disposition: attachment; filename="patch" Content-length: 920 SW5kZXg6IGxvd2VyLXN1YnJlZy5jCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0K LS0tIGxvd2VyLXN1YnJlZy5jICAgICAgKHJldmlzaW9uIDEyNzA1OSkKKysr IGxvd2VyLXN1YnJlZy5jICAgICAgKHdvcmtpbmcgY29weSkKQEAgLTU4Niw5 ICs1ODYsMTAgQEAKIHN0YXRpYyB2b2lkCiByZW1vdmVfcmV0dmFsX25vdGUg KHJ0eCBpbnNuMSkKIHsKLSAgcnR4IG5vdGUwLCBpbnNuMCwgbm90ZTEsIGlu c247CisgIHJ0eCBub3RlMCwgaW5zbjAsIG5vdGUxLCBub3RlMiwgaW5zbjsK CiAgIG5vdGUxID0gZmluZF9yZWdfbm90ZSAoaW5zbjEsIFJFR19SRVRWQUws IE5VTEwpOworICBub3RlMiA9IGZpbmRfcmVnX25vdGUgKGluc24xLCBSRUdf RVFVQUwsIE5VTEwpOwogICBpZiAobm90ZTEgPT0gTlVMTF9SVFgpCiAgICAg cmV0dXJuOwoKQEAgLTU5OCw2ICs1OTksOSBAQAogICByZW1vdmVfbm90ZSAo aW5zbjAsIG5vdGUwKTsKICAgcmVtb3ZlX25vdGUgKGluc24xLCBub3RlMSk7 CgorICBpZiAobm90ZTIpCisgICAgcmVtb3ZlX25vdGUgKGluc24xLCBub3Rl Mik7CisKICAgZm9yIChpbnNuID0gaW5zbjA7IGluc24gIT0gaW5zbjE7IGlu c24gPSBORVhUX0lOU04gKGluc24pKQogICAgIHsKICAgICAgIHdoaWxlICgx KQo= ------=_Part_13044_24527549.1185976162676--