[LLVMdev] Irreducible CFG from tail duplication

Florian Brandner brandner at complang.tuwien.ac.at
Thu Jul 24 23:54:20 PDT 2008


hi mark,

> It seems that tail duplication can make a reducible CFG irreducible
> (example below).  Is that intentional?  Are there other optimizations
> that have that property?

there has been a discussion on this problem some weeks ago:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-June/015247.html

the message includes a patch for taildup, that disables the duplication of 
loop headers. there are some remarks on the patch in follow-up messages, most 
notably it causes some compiltime overhead (~1%-2% on spec benchmarks). note 
that, taildup has been completely removed on trunk.

florian

-- 
Brandner Florian

CD Laboratory - Compilation Techniques for Embedded Processors
Institut für Computersprachen E185/1
Technische Universität Wien
 
Argentinierstraße 8 / 185
A-1040 Wien, Austria

Tel.: (+431) 58801-58521

E-Mail: brandner at complang.tuwien.ac.at
	




More information about the llvm-dev mailing list