Avoid duplicating loop header which leads to unnatural loops (and just seem like...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 11 Jun 2008 19:07:54 +0000 (19:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 11 Jun 2008 19:07:54 +0000 (19:07 +0000)
commitbb318c073e0442ad86aa499ed329058ebce9b4c7
tree8aab99d7f53edf7cd2b712dbddd160f73c1c84f2
parent4468440a2a92fecd57f002b1b9c0683d2b9c4aea
Avoid duplicating loop header which leads to unnatural loops (and just seem like general badness to me, likely to cause code explosion).
Patch by Florian Brandner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52223 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/TailDuplication.cpp
test/Transforms/TailDup/2008-06-11-AvoidDupLoopHeader.ll [new file with mode: 0644]