<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>I might need a switching mechanism a little bit more complicated to handle instrumentation, several parallel versions and the original version. And also, the "original"  version I send to Polly, is not the original one generated from the source code, but the one with pointers replaced with arrays.<br><br>But I will investigate the solution you propose, maybe I can adapt it and use it more easily, as it is already integrated in Polly.<br><br>Alexandra<br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Tobias Grosser <tobias@grosser.es><br><b><span style="font-weight: bold;">To:</span></b> Jimborean
 Alexandra <xinfinity_a@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> Renato Golin <rengolin@systemcall.org>; llvmdev@cs.uiuc.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, July 19, 2011 11:48:12 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] speculative parallelization in LLVM<br></font><br>
On 07/19/2011 11:46 AM, Jimborean Alexandra wrote:<br>> Hi Renato,<br>> <br>> No, I cannot, but in case it is, I want to take advantage of this. In<br>> case it is not, the instrumentation code will detect this at runtime and<br>> simply roll back to the original version. I will always keep an original<br>> version available, in addition to the ones I modify with Polly. However,<br>> initially I will speculate that it is allocated contiguously.<br><br>Keeping the original version should be easy, as Polly always leaves both versions in the LLVM-IR.<br><br>At the moment we have<br><br>if (true)<br>  new_version<br>else<br>  old_version<br><br>You could just replace the true with your runtime check.<br><br>Cheers<br>Tobi<br></div></div>



</div></body></html>