[LLVMdev] Create superblock in LLVM IR
atrick at apple.com
Mon Sep 17 09:40:03 PDT 2012
On Sep 17, 2012, at 9:35 AM, Alexander Potapenko <glider at google.com> wrote:
> Last time I asked here about superblocks (which we were using in the
> first version of ThreadSanitizer instrumentation) Tobias Grosser has
> suggested to use RegionInfo:
> did you have a look at the RegionInfo pass? It currently detects some
> kind of refinded SESE regions. I use them in Polly and as far as I know
> the Intel OpenCL SDK also uses them in some way. It is not SEME, but it
> may either fit your needs or we may think about extending it.
> If you want to give it a try you can use:
> opt -view-regions-only file.ll
> It would be great if we could have just a single RegionInfo analysis
> that can then be used by other passes to detect and/or generate the kind
> of regions they need.
The superblock formation that Tomas is doing will create lots of single-entry multiple-exit-block regions.
More information about the llvm-dev