On 11/04/2011 04:53 PM, Aldy Hernandez wrote: >> Why is it necessary to know whether a clone is a tm clone? > > How do you mean? First, there are a few pretty printing places where we dump > that a function is a clone. It is easy to debug dumps when you know which > function is the clone and which is the original function, since we will dump > both variants at code generation time. > > Second, there is code in the TM lowering bits where we assert that we are not > trying to lower TM clones ahead of time. And there is a check in > gate_tm_init() where we specify that the entire function is a TM region if it > is a clone. > > etc, etc. > > Does this answer your question?
Richi, if it's the use of the bit in the tree node that you're worried about, we could probably put it in cgraph_node.local instead. But we do need the knowledge. r~