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 | 1e29f7c97df987125b17670d903317a1515aa127 (patch) | |
| tree | b53d365b082dbeb2956c806c7f974c1d23ffd9d7 /llvm/lib | |
| parent | b6f09933c0417b2ad3ae66740da1c2e18f9bfa61 (diff) | |
| download | bcm5719-llvm-1e29f7c97df987125b17670d903317a1515aa127.tar.gz bcm5719-llvm-1e29f7c97df987125b17670d903317a1515aa127.zip | |
make RLE preserve the name of the load that it replaces. This is just
a pretification of the IR.
llvm-svn: 60973
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index 2081811f0d1..cb2b06b7a6d 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/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); |

