unssa: eliminate trivial phisrc copies
commit9a492fdd83d7cb09292c0a0950deed9f39eb1a0a
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 12 Dec 2016 15:29:00 +0000 (12 16:29 +0100)
committerChristopher Li <sparse@chrisli.org>
Mon, 13 Feb 2017 01:34:45 +0000 (13 09:34 +0800)
tree4981926852c85c390960e94d16d15cc8319efee2
parent2e6232a27803596dbd1517164b3f3dc2e2aa8ca7
unssa: eliminate trivial phisrc copies

A OP_PHISOURCE which is the only user of its operand
can be trivially eliminated. For example, in:
add %r6, ...
...
phisrc %rt, %r6
the phisrc can safely be eliminated if no other instruction use %r6.
With this patch it's rewritten as:
add %rt, ...
...

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
unssa.c