Hi Mircea. Sorry, I've been missing for a while. Thank you for your ideas! I agree that reusing of the existing code (especially code using tree-SSA related information) is important for this project. I'm considering the current code in graphite_clast_to_gimple.c, and want to ask a few questions about it. I'll send them in a new message.
– Cheers, Roman Gareev