From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dibyendu Majumdar Subject: Re: [RFC] sparse SSA construction Date: Tue, 15 Aug 2017 23:44:16 +0100 Message-ID: References: <20170806202651.8763-1-luc.vanoostenryck@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from mail-ua0-f172.google.com ([209.85.217.172]:35419 "EHLO mail-ua0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbdHOWoS (ORCPT ); Tue, 15 Aug 2017 18:44:18 -0400 Received: by mail-ua0-f172.google.com with SMTP id d29so8056527uai.2 for ; Tue, 15 Aug 2017 15:44:17 -0700 (PDT) In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Luc Van Oostenryck Cc: Linus Torvalds , Christopher Li , Linux-Sparse Hi, I think it would be good to perform a detailed comparison / assessment of where the problem lies currently versus the new solution. I get the impression that the current problem is not well explained or understood. Here are two known issues at present. You can see the old linearized output and the new linearized output - both produced with simplifications switched off. C code: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/bugs/simplifybug.c Old linearized output: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/bugs/simplifybug_old.lin New linearized output: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/bugs/simplifybug_new.lin C code: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/set1/onebit.c Old linearized output: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/set1/onebit_old.lin New linearized output: https://github.com/dibyendumajumdar/dmr_c/blob/newssa/tests/set1/onebit_new.lin The two situations where I see problems currently are exemplified above. In the first case the outputs are clearly different - and here the issue appears to be how undefined pseudos are handled. In the second case, the original linear output seems identical to the new output - so the issue probably lies in the single store shortcut. Regards Dibyendu