tcg: Add reachable_code_pass
commitb4fc67c7afd2c338d6e7c73a7f428dfe05ae0603
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Nov 2018 22:28:28 +0000 (26 14:28 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 25 Dec 2018 19:40:30 +0000 (26 06:40 +1100)
treec44d69aa3bcf491500a09736929ac5ca65d6fa9c
parentd88a117eaa39b1d0eb1a79fe84c81840a39eb233
tcg: Add reachable_code_pass

Delete trivially dead code that follows unconditional branches and
noreturn helpers.  These can occur either via optimization or via
the structure of a target's translator following an exception.

Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c