From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39248 invoked by alias); 30 Jun 2017 13:36:36 -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 38243 invoked by uid 89); 30 Jun 2017 13:36:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*segher X-HELO: mail-qt0-f175.google.com Received: from mail-qt0-f175.google.com (HELO mail-qt0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Jun 2017 13:36:32 +0000 Received: by mail-qt0-f175.google.com with SMTP id 32so98839096qtv.1 for ; Fri, 30 Jun 2017 06:36:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=sgjRcjYbipzzK5cJRQ3RSgcccXmUTQOFT38P2YNE8Mo=; b=eR1xefKB8BT2O0zxdhfNyYq4vhq95iXQIsYHuBzEn8Ql/eZSFk56hymTKo3nS+K8wi rmWByTiorDCWRfy6BHOBBl69uHaY+YruwZJ50UUiWeDVt2Zu0M78TD8ZU614pTj0hSXq 7KbHPC9hH7EKpYK2je6GndUcD5bvmBEtX0qJLyt8bosQSbOKKM8EDWBhkSeWnj1Yk/bk PVOy2Iysv7pMq4NiivRasGMu2DKw0WaChPDLw0EvffXdLtflO3GAEvdPYwjgtxNiYdI3 hxlF20rH7GUzQMGtzPYo6WEJ3xwRF7ugYwG+XjHAhWb5ImEcQdelBCfT/XOJSYiQgFak g+rg== X-Gm-Message-State: AKS2vOwrTFYCzTom87eZqeNA9CRMbGq/45JvFlVYFW0do6MXfAozj4TF ec5ShjZJIS+Aett3Ryi0ioUK9/Pgfw== X-Received: by 10.237.45.3 with SMTP id h3mr25248247qtd.110.1498829790293; Fri, 30 Jun 2017 06:36:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.208.106 with HTTP; Fri, 30 Jun 2017 06:36:29 -0700 (PDT) From: David Edelsohn Date: Fri, 30 Jun 2017 13:36:00 -0000 Message-ID: Subject: [PATCH] rs6000 branch probability changes To: Segher Boessenkool Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-06/txt/msg02383.txt.bz2 Convert the rs6000 port to use the new API for branch probabilities. Okay? Thanks, David * config/rs6000/rs6000.c (emit_unlikely_jump): Adjust to new branch probability data type. Index: rs6000.c =================================================================== --- rs6000.c (revision 249839) +++ rs6000.c (working copy) @@ -23514,10 +23514,9 @@ static void emit_unlikely_jump (rtx cond, rtx label) { - int very_unlikely = REG_BR_PROB_BASE / 100 - 1; rtx x = gen_rtx_IF_THEN_ELSE (VOIDmode, cond, label, pc_rtx); rtx_insn *insn = emit_jump_insn (gen_rtx_SET (pc_rtx, x)); - add_int_reg_note (insn, REG_BR_PROB, very_unlikely); + add_int_reg_note (insn, REG_BR_PROB, profile_probability::very_unlikely ()); } /* A subroutine of the atomic operation splitters. Emit a load-locked