diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-13 07:22:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-13 07:22:47 +0000 |
commit | 879922932fad4149280b8bc03c60f0003f55a778 (patch) | |
tree | 431d228f6a001047cfbd64674523d3ac8ee285ed /lib | |
parent | fd6673cf7fd5c0c1e6817e5fcf460a289712ee57 (diff) | |
download | external_llvm-879922932fad4149280b8bc03c60f0003f55a778.zip external_llvm-879922932fad4149280b8bc03c60f0003f55a778.tar.gz external_llvm-879922932fad4149280b8bc03c60f0003f55a778.tar.bz2 |
make RLE preserve the name of the load that it replaces. This is just
a pretification of the IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 2081811..cb2b06b 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -1034,6 +1034,7 @@ bool GVN::processNonLocalLoad(LoadInst *LI, // Perform PHI construction. Value* v = GetValueForBlock(LI->getParent(), LI, BlockReplValues, true); LI->replaceAllUsesWith(v); + v->takeName(LI); if (isa<PointerType>(v->getType())) MD->invalidateCachedPointerInfo(v); toErase.push_back(LI); |