diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-13 19:15:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-13 19:15:17 +0000 |
commit | e34c667fa392fbdb646f72743a414b84c8d1fb1e (patch) | |
tree | db0f8b4f971bfe783a270cd59caa66856dba6fa1 /lib/Transforms/Scalar/LoopRotation.cpp | |
parent | 4ac8ecc756bd6829ca06c4289548d3eed31c3fa7 (diff) | |
download | external_llvm-e34c667fa392fbdb646f72743a414b84c8d1fb1e.zip external_llvm-e34c667fa392fbdb646f72743a414b84c8d1fb1e.tar.gz external_llvm-e34c667fa392fbdb646f72743a414b84c8d1fb1e.tar.bz2 |
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
Diffstat (limited to 'lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopRotation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopRotation.cpp b/lib/Transforms/Scalar/LoopRotation.cpp index 51e2cd8..53473fd 100644 --- a/lib/Transforms/Scalar/LoopRotation.cpp +++ b/lib/Transforms/Scalar/LoopRotation.cpp @@ -226,7 +226,7 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) { // If this instruction is using a value from same basic block then // update it to use value from cloned instruction. Instruction *C = In->clone(); - C->setName(In->getName()); + C->takeName(In); OrigPreHeader->getInstList().push_back(C); for (unsigned opi = 0, e = In->getNumOperands(); opi != e; ++opi) { |