Phi optimization must be strictly dominated
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 13 Jun 2007 12:51:49 +0000 (12:51 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 13 Jun 2007 12:51:49 +0000 (12:51 +0000)
[r14460]

ir/opt/ldstopt.c

index 8b2e78c..588a55c 100644 (file)
@@ -997,7 +997,7 @@ static unsigned optimize_phi(ir_node *phi, walk_env_t *wenv)
                return 0;
 
        phi_block = get_nodes_block(phi);
-       if (! block_postdominates(phi_block, block))
+       if (! block_strictly_postdominates(phi_block, block))
                return 0;
 
        /* this is the address of the store */