dded assertion if ldstopt() is called with nodes floating, we need precise block...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Jun 2005 09:51:32 +0000 (09:51 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Jun 2005 09:51:32 +0000 (09:51 +0000)
[r6148]

ir/opt/ldstopt.c

index d535879..e49010d 100644 (file)
@@ -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;