From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> References: <20170305112047.3411-1-luc.vanoostenryck@gmail.com> Return-path: 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) In-Reply-To: <20170305112047.3411-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: linux-sparse@vger.kernel.org Cc: Dibyendu Majumdar , Luc Van Oostenryck 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); -- 2.11.1