tailrec requires many Returns
authorAndreas Zwinkau <zwinkau@kit.edu>
Thu, 27 Oct 2011 08:21:17 +0000 (10:21 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Thu, 27 Oct 2011 08:38:03 +0000 (10:38 +0200)
commit55a7a1f4a435638bbd93ee9f0d4faa0c1ba6727b
tree2f9c9761f534df2412ab4f767b30130a79ee74fe
parent979c74bef74608a7a2f7d26be30abababc10209e
tailrec requires many Returns

Extend opt_manage framework with MANY_RETURNS condition.

Since normalize_n_returns might introduce unreachable code,
the order should be handled in the framework instead of the
optimization.

Fix opt/gap test.
include/libfirm/irgraph.h
ir/opt/opt_manage.c
ir/opt/tailrec.c