opt: Start optimizing dead code a bit
commit31c7ea0165882eaf09040ea7edfc37cc38f0a032
authorMichael Matz <matz@suse.de>
Mon, 19 Sep 2016 16:38:12 +0000 (19 18:38 +0200)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:47:12 +0000 (15 17:47 +0100)
treed1dad07537700b756d612c68b414d243202a9529
parentb303a00ce01876dfa2ba3fe532db04d200168b9d
opt: Start optimizing dead code a bit

If a condition is always zero/non-zero we can omit the
then or else code.  This is complicated a bit by having to
deal with labels that might make such code reachable without
us yet knowing during parsing.
tccgen.c
tests/tcctest.c
tests/tests2/87_dead_code.c [new file with mode: 0644]
tests/tests2/87_dead_code.expect [new file with mode: 0644]