linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: Dibyendu Majumdar <mobile@majumdar.org.uk>
Cc: Linux-Sparse <linux-sparse@vger.kernel.org>
Subject: Re: Some thoughts on the SSA debate
Date: Wed, 13 Sep 2017 21:10:01 +0200	[thread overview]
Message-ID: <CAExDi1QisEx6tEiTB1_kEhSpSLk60GSJuqBZBXFyuJc8wN+Omw@mail.gmail.com> (raw)
In-Reply-To: <CACXZuxeO_rpOFwhjf8vb1SsiHH0NJNneKyoDwF_BzyYyz6n4kw@mail.gmail.com>

On Wed, Sep 13, 2017 at 8:25 PM, Dibyendu Majumdar
<mobile@majumdar.org.uk> wrote:
> Hi Luc,
>
> On 12 September 2017 at 14:06, Luc Van Oostenryck
> <luc.vanoostenryck@gmail.com> wrote:
>> On Tue, Sep 12, 2017 at 1:47 PM, Dibyendu Majumdar
>>> But the issue
>>> right now is that the simplifications are not always correct even with
>>> the new SSA so that I have to disable everything anyway.
>>
>> It's what you do but it's not what I do.
>> The other part that is broken is simplify_loads() which try to convert
>> more variables after each simplification/CSE steps.
>> Since the code is copied from the code for the initial conversion
>> it's broken in the same ways.
>> I just disabled it and things are then correct.
>>
>
> I probably ought to update my project with the latest version you
> have. Please let me know if you have an updated minimal changes branch
> that I can apply.

For SSSA, I have what you should have already or something quite close:
* https://github.com/lucvoo/sparse/tree/sssa-mini-v3

And the same but with all LLVM fixes and others fixes or optimizations:
* https://github.com/lucvoo/sparse/tree/sssa-next

I also have something I use only as a sort of reference which I have
absolutely no intention to ever submit. It doesn't do the SSA conversion
during linearization and converts more vars. It also seems to be quite
correct and so is useful to me for doing comparisons but that's all (and it's
not tested for against the kernel, for example):
* https://github.com/lucvoo/sparse/tree/mem2ssa-next

None of these trees are stable as I often rebuild them while working
on the base.
So, I'm not sure how useful they can be for you but if you find a problem
with linearization, SSA conversion or optimization, you can always check
with one of these (probably the last one) to see if it's already fixed or not.

-- Luc

      reply	other threads:[~2017-09-13 19:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 10:28 Some thoughts on the SSA debate Dibyendu Majumdar
2017-09-09  2:06 ` Luc Van Oostenryck
2017-09-12 10:06   ` Dibyendu Majumdar
2017-09-12 10:48     ` Luc Van Oostenryck
2017-09-12 11:47       ` Dibyendu Majumdar
2017-09-12 13:06         ` Luc Van Oostenryck
2017-09-13 18:25           ` Dibyendu Majumdar
2017-09-13 19:10             ` Luc Van Oostenryck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAExDi1QisEx6tEiTB1_kEhSpSLk60GSJuqBZBXFyuJc8wN+Omw@mail.gmail.com \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    --cc=mobile@majumdar.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).