commit | e34c667fa392fbdb646f72743a414b84c8d1fb1e | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Sun Apr 13 19:15:17 2008 +0000 |
committer | Owen Anderson <resistor@mac.com> | Sun Apr 13 19:15:17 2008 +0000 |
tree | db0f8b4f971bfe783a270cd59caa66856dba6fa1 | |
parent | 4ac8ecc756bd6829ca06c4289548d3eed31c3fa7 [diff] [blame] |
Replace calls of the form V1->setName(V2->getName()) with V1->takeName(V2), which is significantly more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49614 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/TailDuplication.cpp b/lib/Transforms/Scalar/TailDuplication.cpp index 929d113..5d802a6 100644 --- a/lib/Transforms/Scalar/TailDuplication.cpp +++ b/lib/Transforms/Scalar/TailDuplication.cpp
@@ -317,7 +317,7 @@ // for (; BI != DestBlock->end(); ++BI) { Instruction *New = BI->clone(); - New->setName(BI->getName()); + New->takeName(BI); SourceBlock->getInstList().push_back(New); ValueMapping[BI] = New; }