Hi, I'm trying to add a simple function to the callgraph using cgraph_add_new_function() ( new function body is obtained by function actually processed) . I put my pass in pass_tree_loop.sub as first pass just after pass_tree_loop_init pass, but I have some problems because the code that I put into the new function ( using move_sese_region_to_fn() ) is already in ssa form. Unfortunately I have to use gcc version 4.2.2 and so I think that the only solution is to put the code out of the ssa form. Could someone point me to the right direction? What am I doing wrong?
Regards, Mario Fanelli