From patchwork Wed Jul 18 04:56:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 945497 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-481781-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Q7yrkKum"; 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 41VlHH4R04z9s3R for ; Wed, 18 Jul 2018 14:56:40 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=AEtnHrldDlq9/BiegBRSQ6BFzEIFQy1nmX2K9TPduAckX2O4wx Tp2kWMc8dkHAJi7clkKD+l9NyH0dcCWdjVC19U2u3EORqCz0TNZoL/lo7/Mhd/ei kLcK+ZpSutZv1dKsFrEg21XD1+YqITRgCM9bxG+BDYeCumjhaGpEULO3Q= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=/5F3PBbakpqyrV6nUHOB8Gx17l0=; b=Q7yrkKum1RwHnra6cL91 TLmjffWLAD4rIiQq++ljlZkjVgmLv9SOpXWBZCrLHZC6rWU3Jqif9ZJxvKRH2efR yhJrzobFzVrgJRhr2wt3gQW5/BzYKQrdUMhkVovSkrdn4Rwpat9FQXeKIEgmpjyZ H/pMLHXaVD5mILxFWbO0Vc4= Received: (qmail 74918 invoked by alias); 18 Jul 2018 04:56:33 -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 74455 invoked by uid 89); 18 Jul 2018 04:56:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jul 2018 04:56:30 +0000 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A6C6F30034C5 for ; Wed, 18 Jul 2018 04:56:29 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-9.rdu2.redhat.com [10.10.112.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2C0A92010CB7 for ; Wed, 18 Jul 2018 04:56:28 +0000 (UTC) To: gcc-patches From: Jeff Law Subject: [committed] And now fixing alignment stuff for ARM Openpgp: preference=signencrypt Message-ID: <34ddcdc0-8def-0cc4-54e4-5b87ec7b988a@redhat.com> Date: Tue, 17 Jul 2018 22:56:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 X-IsSubscribed: yes Just like the others. Committing to the trunk. Jeff diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bccc0c76b04..0249082f618 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2018-07-17 Jeff Law + * config/arm/arm.c (get_label_padding): Update for recent + changes to label_to_alignment. + PR tree-optimization/86010 * tree-ssa-dse.c (compute_trims): Fix typo/thinko. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index ec3abbcba9f..cf12aceb5fd 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -15938,7 +15938,7 @@ get_label_padding (rtx label) { HOST_WIDE_INT align, min_insn_size; - align = 1 << label_to_alignment (label); + align = 1 << label_to_alignment (label).levels[0].log; min_insn_size = TARGET_THUMB ? 2 : 4; return align > min_insn_size ? align - min_insn_size : 0; }