cse: treat PHI-nodes as other instructions
commit31dc25301b584f8d938629f9a68c5db83ec6241b
authorKamil Dudka <kdudka@redhat.com>
Sun, 9 Aug 2009 20:43:17 +0000 (9 22:43 +0200)
committerChristopher Li <sparse@chrisli.org>
Sun, 28 Aug 2011 06:27:35 +0000 (27 23:27 -0700)
tree7437f8e0a9164b7a92e1e238c80574e0c3cb6e25
parent8376ab091a5ab1850797fd203f31ae97a1287b23
cse: treat PHI-nodes as other instructions

Without this patch test-linearize fails on a simple example:

static void test(int i)
{
    while (i) {
        if (i)
            test(0);
        i++;
    }
}

It generates a conditional jump depending on an uninitialized value
which is obviously not in the input code.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
cse.c