ppc: Don't generate dead code on unconditional branches
commitaccc60c47c9b57f49865d1bed6df3d3085fec81d
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 31 Jul 2016 05:13:09 +0000 (31 15:13 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 7 Sep 2016 02:40:12 +0000 (7 12:40 +1000)
treec9a050d055bdec065e94817c72916506bf7c5198
parent4f5d326046fa522010c0a66f1bcaac9068253085
ppc: Don't generate dead code on unconditional branches

We are always generating the "else" case of the condition even when
generating an unconditional branch that will never hit it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c