From: Michael Beck Date: Thu, 30 Jun 2005 09:51:32 +0000 (+0000) Subject: dded assertion if ldstopt() is called with nodes floating, we need precise block... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=75d2e78bc1fe1f465ea8437e6b40275ad6f022b5;p=libfirm dded assertion if ldstopt() is called with nodes floating, we need precise block info [r6148] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index d53587917..e49010d84 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -869,6 +869,8 @@ void optimize_load_store(ir_graph *irg) walk_env_t env; assert(get_irg_phase_state(irg) != phase_building); + assert(get_irg_pinned(irg) != op_pin_state_floats && + "LoadStore optimization needs pinned graph"); if (!get_opt_redundant_LoadStore()) return;