[LLVMdev] speculative parallelization in LLVM

Tobias Grosser tobias at grosser.es
Tue Jul 19 02:48:12 PDT 2011

On 07/19/2011 11:46 AM, Jimborean Alexandra wrote:
> Hi Renato,
> No, I cannot, but in case it is, I want to take advantage of this. In
> case it is not, the instrumentation code will detect this at runtime and
> simply roll back to the original version. I will always keep an original
> version available, in addition to the ones I modify with Polly. However,
> initially I will speculate that it is allocated contiguously.

Keeping the original version should be easy, as Polly always leaves both 
versions in the LLVM-IR.

At the moment we have

if (true)

You could just replace the true with your runtime check.


More information about the llvm-dev mailing list