I want to insert a GIMPLE_COND from the GCC API.
What is the best approach for doing this from a plugin? Should this done before or after the CFG has been created. I made a plugin that gets called after the "cfg" and can see the output in the ASM, but it is incorrect. I think it is due to edge issues.
If I should insert before the CFG - what is the correct reference_pass_name I should be targeting? Is there a specific function or data structure I should be appending before the CFG creation?