Hi,

> So the statement
> j_12 = D.1190_11 + j_24;
> is now present in loop_b, but I am unable to create the phi node for
> it in loop_b. I tried to do so using
> for (phi = phi_nodes (loop_a->header);
>       phi;)
>    {
>      next = PHI_CHAIN (phi);
>      create_phi_node (SSA_NAME_VAR (PHI_RESULT (phi)), loop_b->header);
>      phi = next;
>    }
> in fuse_loops() but the phinode is created for j_2 instead of j_24.

Would it be possible to use create_iv instead of creating phi nodes?
Otherwise look in create_iv to see how it creates the PHI nodes for the
induction variable.

Sebastian

Reply via email to