From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dibyendu Majumdar Subject: Re: sparse-llvm issue with handling of phisrc instruction Date: Wed, 22 Mar 2017 19:46:48 +0000 Message-ID: References: <20170322192929.waqifaco6wtm7wue@macpro.local> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-it0-f41.google.com ([209.85.214.41]:35733 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758663AbdCVTqu (ORCPT ); Wed, 22 Mar 2017 15:46:50 -0400 Received: by mail-it0-f41.google.com with SMTP id y18so29375522itc.0 for ; Wed, 22 Mar 2017 12:46:49 -0700 (PDT) In-Reply-To: <20170322192929.waqifaco6wtm7wue@macpro.local> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Luc Van Oostenryck Cc: Linux-Sparse Hi Luc, On 22 March 2017 at 19:29, Luc Van Oostenryck wrote: >> >>>> I am trying to see if sparse-llvm can handle unsimplified IR output >> >>>> from linearizer. I think there is a problem in how it handles phisrc. >> >>> >> >>> Does your non-simplified sparse IR contain the liveness information? >> >>> I think those are needed for the handling of OP_PHI & OP_PHISOURCE >> >>> in sparse-llvm. >> >>> >> >> >> >> Probably not - I commented out everything in linearize_fn() from >> >> simplify_symbol_usage() and downwards. Please tell me if this is >> >> incorrect. >> > >> > As far as I understand, sparse-llvm needs track_pseudo_liveness(). >> > >> >> Tried that - it made no difference. > > I'm not sure liveness info has much sense without simplification, > at least part of it. > You were right - I needed to retain following line: track_pseudo_death(C, ep); I mistakenly thought (going by name) that I had to call: track_pseudo_liveness(C, ep); Anyway it appears that this now populates the phi_users list so that the code works correctly. Thanks for your help. Regards Dibyendu