From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104101 invoked by alias); 22 Jun 2015 08:58:37 -0000 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 Received: (qmail 104090 invoked by uid 89); 22 Jun 2015 08:58:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 22 Jun 2015 08:58:34 +0000 Received: by oiyy130 with SMTP id y130so99922691oiy.0 for ; Mon, 22 Jun 2015 01:58:32 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.240.215 with SMTP id o206mr22526391oih.94.1434963512078; Mon, 22 Jun 2015 01:58:32 -0700 (PDT) Received: by 10.60.147.170 with HTTP; Mon, 22 Jun 2015 01:58:31 -0700 (PDT) Date: Mon, 22 Jun 2015 09:49:00 -0000 Message-ID: Subject: [PATCH, i386]: Ignore the cost of embedded comparison (PR 65871) From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Content-Type: multipart/mixed; boundary=94eb2c09204e676a080519177a5d X-SW-Source: 2015-06/txt/msg01410.txt.bz2 --94eb2c09204e676a080519177a5d Content-Type: text/plain; charset=UTF-8 Content-length: 474 Hello! As shown in the PR [1], RTX costs can reject combination of the operation and its embedded comparison. Attached patch fixes this by ignoring the cost of embedded comparison. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65871#c10 2015-06-22 Uros Bizjak PR target/65871 * config/i386/i386.c (ix86_rtx_costs) : Ignore the cost of embedded comparison. Bootstrapped on x86_64-linux-gnu, regtest in progress. Uros. --94eb2c09204e676a080519177a5d Content-Type: text/plain; charset=US-ASCII; name="p.diff.txt" Content-Disposition: attachment; filename="p.diff.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ib7o6ku60 Content-length: 761 SW5kZXg6IGNvbmZpZy9pMzg2L2kzODYuYwo9PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09Ci0tLSBjb25maWcvaTM4Ni9pMzg2LmMJKHJldmlzaW9uIDIyNDcxOCkK KysrIGNvbmZpZy9pMzg2L2kzODYuYwkod29ya2luZyBjb3B5KQpAQCAtNDI1 MzEsNiArNDI1MzEsMTIgQEAgaXg4Nl9ydHhfY29zdHMgKHJ0eCB4LCBpbnQg Y29kZV9pLCBpbnQgb3V0ZXJfY29kZV8KIAkJICAgICsgcnR4X2Nvc3QgKGNv bnN0MV9ydHgsIG91dGVyX2NvZGUsIG9wbm8sIHNwZWVkKSk7CiAJICByZXR1 cm4gdHJ1ZTsKIAl9CisKKyAgICAgIC8qIFRoZSBlbWJlZGRlZCBjb21wYXJp c29uIG9wZXJhbmQgaXMgY29tcGxldGVseSBmcmVlLiAgKi8KKyAgICAgIGlm ICghZ2VuZXJhbF9vcGVyYW5kIChYRVhQICh4LCAwKSwgR0VUX01PREUgKFhF WFAgKHgsIDApKSkKKwkgICYmIFhFWFAgKHgsIDEpID09IGNvbnN0MF9ydHgp CisJKnRvdGFsID0gMDsKKwogICAgICAgcmV0dXJuIGZhbHNlOwogCiAgICAg Y2FzZSBGTE9BVF9FWFRFTkQ6Cg== --94eb2c09204e676a080519177a5d--