Commit 45f1501f authored by Christian Würdig's avatar Christian Würdig
Browse files

add dependency to barrieri if load is in start block

parent a2427651
......@@ -1473,6 +1473,9 @@ static ir_node *gen_Load(ia32_transform_env_t *env) {
add_ia32_am_offs(new_op, get_ia32_cnst(ptr));
am_flav = ia32_am_O;
}
/* add dependency to barrier, if we are in start block */
if (get_irg_start_block(env->irg) == env->block)
add_irn_dep(new_op, be_abi_get_start_barrier(env->cg->birg->abi));
}
set_ia32_am_support(new_op, ia32_am_Source);
......
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