From patchwork Sun Mar 5 11:20:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9604549 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BD9DA60414 for ; Sun, 5 Mar 2017 11:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4F982818E for ; Sun, 5 Mar 2017 11:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99D80283BC; Sun, 5 Mar 2017 11:28:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 461AC2818E for ; Sun, 5 Mar 2017 11:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752364AbdCEL2z (ORCPT ); Sun, 5 Mar 2017 06:28:55 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35357 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752328AbdCEL2y (ORCPT ); Sun, 5 Mar 2017 06:28:54 -0500 Received: by mail-wm0-f65.google.com with SMTP id z63so7286314wmg.2 for ; Sun, 05 Mar 2017 03:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RoHUumF7UHnbgGMmMpenupsfE4XlgRW60v/LhFyihL8=; b=OuZeT0FO/3wsBP19Sh4YQ9yHrpEHwXxHhAPKj0sHHFZpDXHZd7E7sJzxF6AP5tfcHy VM+rZTpDO66SvNVVJLZtTzPHV2iF54aKCKr0Ne7xXyS5kPALsgbq6Xkbcw54F2qTPBeQ AkYyqPVcqcNi0jRwf2yExYByw1JfkgkVjM/tl7bsUbqB8TAsFbjYapa0FVP4gQnWADmg 61tCnCoBoBMxv2pAlR1PwgVE/72bKuTorwDGzO2PQrJG9lf+HuKsLqgLtdwOAxKLHRcF nXiuuG82GlZf26Gc6pZbuJy7x+KiKIEPxAI+VVkcEyzhAftL3InE5T1RISSHkHAZgMCB 1wmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RoHUumF7UHnbgGMmMpenupsfE4XlgRW60v/LhFyihL8=; b=Bk/V8EzUtk1iSEAMQP4JOGC4q4n+H9EDhpx0ZQzfqNnhtryjT24uhrJppT6uBcg9qb SwzNA77wvM5TKyfZNzV6CLuK3DAocSOEKcGC6GIFUjN40khqft44k1C+qCPJFgMZ42eo hltYEaFizTlDH85rgBnFibHQ5QERiYiwW/tb1jkg5qYV4mkihyuc4Jf8bnhIaOXoMiJU GDZ34qCQtH7uVWGM4ucHuHaSVQqXO1W9YNXz1TA2b3lC1Unxplbhd8qaqvCefl601jSD UZDdvzhHgEsafMeEPNFYjVvyHSZvnX1k6t3jIjaUDlMXa9Qg5X8PQrcNHgZ7bMDjgGk6 hBlg== X-Gm-Message-State: AMke39m74t++i99uJfRu1UMolAd492L4u/pD9y9UnxBiMjEEI9Ke+MJlD6rc3clWBWt0hQ== X-Received: by 10.28.218.80 with SMTP id r77mr9241418wmg.0.1488712863629; Sun, 05 Mar 2017 03:21:03 -0800 (PST) Received: from localhost.localdomain ([91.178.178.186]) by smtp.gmail.com with ESMTPSA id d1sm22692382wrb.62.2017.03.05.03.21.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2017 03:21:03 -0800 (PST) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Dibyendu Majumdar , Luc Van Oostenryck Subject: [PATCH 10/13] give a type to OP_SEL, always Date: Sun, 5 Mar 2017 12:20:44 +0100 Message-Id: <20170305112047.3411-11-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170305112047.3411-1-luc.vanoostenryck@gmail.com> References: <20170305112047.3411-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, when a phi-node is converted into a OP_SEL this instruction is given a size but not a type. There is no good reasons for that and it complicate the further correct processing or make it impossible. CC: Dibyendu Majumdar Signed-off-by: Luc Van Oostenryck --- linearize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linearize.c b/linearize.c index fb4c7bd10..03248dd39 100644 --- a/linearize.c +++ b/linearize.c @@ -679,7 +679,7 @@ void insert_select(struct basic_block *bb, struct instruction *br, struct instru /* Remove the 'br' */ delete_last_instruction(&bb->insns); - select = alloc_instruction(OP_SEL, phi_node->size); + select = alloc_typed_instruction(OP_SEL, phi_node->type); select->bb = bb; assert(br->cond);