[trans-mem] rewrite ipa pass

Richard Henderson rth@redhat.com
Tue Nov 11 18:27:00 GMT 2008


The previous incarnation of the IPA pass failed on the second test case 
I tried -- a call to an external tm_callable function.  As I got looking 
into fixing this, I realized that I wasn't actually iterating into the 
transactional clones, and so wasn't generating all of the clones that 
are needed.

The following rewrite handles both of these problems, as well as 
integrating detection of regions that contain irrevokable operations. 
Once we see an irrevokable operation, there's no point in instrumenting 
anything further within the transaction, which means there's no point
in calling a transactional clone from within an irrevokable region, 
which is how this ties into the IPA pass that generates these clones.


r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: z.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081111/f7862b1a/attachment.txt>


More information about the Gcc-patches mailing list