From patchwork Wed Feb 12 06:47:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1236644 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519383-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=axis.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=chr+C26v; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48HVZ14Jptz9s1x for ; Wed, 12 Feb 2020 17:47:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=TfWWgqajBJfqkoQ9 J+GfKid4qZIJ3PC7vmgWdRM9zr9TIItTCUQjarQwF1YaOQOUQ0LHQQ1MADsazykf OLhrHBSfOc3EUVTNHhgd6nP15BM9S21aJ5wECLxK8LnyDiqY3LUdwd/v2BFfW/sC +YMekdtQy2e3oIhbeSRbX8BQOAQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=bb6pebHjc5hnw2c0DgwPuu 53tVQ=; b=chr+C26varrCbbbhIWjmweyqdnQZ9L782BELjVaVWzE0dyexHh7lo/ gWuOB3CcCg+WkhwPuN7y8xieMvVeHaWgUUQOXqHBF1i/xZcl8wpKiGXSa9FIKdfI WZkSWhQtgEsrGbNbnTp0XeBmtzHGcR4smjtYSUoapk5+xjDaM0l/E= Received: (qmail 98756 invoked by alias); 12 Feb 2020 06:47:11 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98742 invoked by uid 89); 12 Feb 2020 06:47:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.0 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: smtp1.axis.com Received: from smtp1.axis.com (HELO smtp1.axis.com) (195.60.68.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2020 06:47:07 +0000 IronPort-SDR: SawLsm5Pype4EOAxdDw8joG7mjInKdczR0TYCenw9bje4oWd1FJ7yt56OZPBT6LiZqEOeFixzJ Q8z3EPxOf29/ImmBLEJX4gIULytM9/gaelH1iI687Pb6ppQrBv9dAbjqfYgrLg2b+6MvyYIqG4 XZy6brvwV8xjba+g5orJT/dn5n2jjFAlKwEe5cRJ/BjnIfpRZtRwZL7dmjsj6Mj8FZKGQZiMfm tot5qlBZseYkIGy4OaNxyRVp+56e5TCEbiVtglSrjZWJqKAqnbr9YwOAqGF4WcPh7ZpuqIbkBF 6Nw= Date: Wed, 12 Feb 2020 07:47:04 +0100 Message-ID: <202002120647.01C6l4Zi026181@ignucius.se.axis.com> From: Hans-Peter Nilsson To: Subject: [cris-decc0 0/14] A set of compare-elimination-fixes. MIME-Version: 1.0 X-IsSubscribed: yes I just rebased and updated the vendors/axis branch axis/cris-decc0 with the following commits, which should bring back compare-elimination results to that of cc0 on master. With the exception of the bit-test patterns (btst / btstq which is more of a "combine" matter), everything is centered around working together with the "cmpelim" pass with the help of define_subst attributes. Regression test-cases have already been committed to master (the recently committed pr93372-* tests), covering all patterns but not all CCmodes or conditions. All patches regtested for cris-elf, at a smaller granularity than these partially squashed commits, but naturally with regressions for the pr93372-* testcases until the last one of these commits. No performance tests yet though, but I expect axis/cris-decc0 to be a win over master, since as I've mentioned before, I see improvements in register-allocation already in libgcc, which should get back what's lost in all the special patterns I deleted. I haven't looked into the cause, but it shouldn't surprise anyone that there's some noticeable goodies inside something to the effect of #ifndef HAVE_cc0, even with IRA. (Conversion to LRA is way down on the TODO list.) It's a bit unfortunate that so many pattern names are now obfuscated with the define_subst_attr attributes (like "zero_extendsi2" instead of "zero_extendsi2"), but I'll take that single line change in patterns over duplicated or triplicated patterns. brgds, H-P