Skip to content
  • Rafael Espindola's avatar
    Move early tail duplication earlier. · c74d9378
    Rafael Espindola authored
    This fixes the issue noted in PR10251 where early tail dup of bbs with
    indirectbr would cause a bb to be duplicated into a loop preheader
    and then into its predecessors, creating phi nodes with identical
    operands just before register allocation.
    
    This helps with jsinterp.o size (__TEXT goes from 163568 to 126656)
    and a bit with performance 1.005x faster on sunspider (jits still enabled).
    
    The result on webkit with the jit disabled is more significant: 1.021x faster.
    
    llvm-svn: 134372
    c74d9378
Loading