Change pre-regalloc tail duplication to only duplicate indirect branch blocks.
authorBob Wilson <bob.wilson@apple.com>
Fri, 15 Jan 2010 06:29:17 +0000 (06:29 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 15 Jan 2010 06:29:17 +0000 (06:29 +0000)
commitbfdcf3bd49f50050fe98523f882b2241d2752fb4
treefd04b3c2bb225fe54b22bd628cc4540479e62f52
parent283ba2fbb4a40d5f7615aba070f2f7ec161d19ac
Change pre-regalloc tail duplication to only duplicate indirect branch blocks.
The pre-regalloc pass caused some regressions in both compile time and
performance of the generated code, and it did not improve performance, except
for indirect branches.  I also moved the check for single-block loops to speed
up the common case when running the taildup pass before reg allocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93505 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TailDuplication.cpp