Commit 4ec158d9 authored by Andreas Fried's avatar Andreas Fried
Browse files

amd64: Run optimization after code selection.

The spiller crashes on some unoptimized Phi nodes.
parent 3c78c1b9
......@@ -22,6 +22,7 @@
#include "gen_amd64_regalloc_if.h"
#include "irarch_t.h"
#include "irgmod.h"
#include "irgopt.h"
#include "irgwalk.h"
#include "iropt_t.h"
#include "irtools.h"
......@@ -501,6 +502,10 @@ static void amd64_select_instructions(ir_graph *irg)
be_timer_pop(T_CODEGEN);
be_dump(DUMP_BE, irg, "code-selection");
optimize_graph_df(irg);
be_dump(DUMP_BE, irg, "opt");
}
static void introduce_epilogue(ir_node *ret)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment