/* TODO, backends (at least ia32) can't handle it at the moment,
and it's probably not more efficient on most archs */
#if 0
/* TODO, backends (at least ia32) can't handle it at the moment,
and it's probably not more efficient on most archs */
#if 0
/* - 1 for the initial conv */
costs = get_conv_costs(pred, mode) - 1;
DB((dbg, LEVEL_2, "Costs for %+F -> %+F: %d\n", node, pred, costs));
/* - 1 for the initial conv */
costs = get_conv_costs(pred, mode) - 1;
DB((dbg, LEVEL_2, "Costs for %+F -> %+F: %d\n", node, pred, costs));
transformed = conv_transform(pred, mode);
if (node != transformed) {
exchange(node, transformed);
transformed = conv_transform(pred, mode);
if (node != transformed) {
exchange(node, transformed);
FIRM_DBG_REGISTER(dbg, "firm.opt.conv");
DB((dbg, LEVEL_1, "===> Performing conversion optimization on %+F\n", irg));
edges_assure(irg);
do {
FIRM_DBG_REGISTER(dbg, "firm.opt.conv");
DB((dbg, LEVEL_1, "===> Performing conversion optimization on %+F\n", irg));
edges_assure(irg);
do {
irg_walk_graph(irg, NULL, conv_opt_walker, NULL);
local_optimize_graph(irg);
invalidate |= changed;
irg_walk_graph(irg, NULL, conv_opt_walker, NULL);
local_optimize_graph(irg);
invalidate |= changed;
ir_graph_pass_t *conv_opt_pass(const char *name)
{
return def_graph_pass_ret(name ? name : "conv_opt", conv_opt);
ir_graph_pass_t *conv_opt_pass(const char *name)
{
return def_graph_pass_ret(name ? name : "conv_opt", conv_opt);