make GVN try to rename inputs to the resultant replaced values, which
authorChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 03:46:38 +0000 (03:46 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 03:46:38 +0000 (03:46 +0000)
commitf33131685bb9de34dd876641bdf2d514fb49ce4c
treeb310c95ae993b5a41e46019a975931ec910062c1
parent9e59c64c14cfe55e7cc9086c6bff8cfeecac361e
make GVN try to rename inputs to the resultant replaced values, which
cleans up the generated code a bit.  This should have the added benefit of
not randomly renaming functions/globals like my previous patch did. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/2007-07-26-InterlockingLoops.ll
test/Transforms/GVN/2007-07-26-PhiErasure.ll
test/Transforms/GVN/2007-07-31-NoDomInherit.ll
test/Transforms/GVN/rle-dominated.ll
test/Transforms/GVN/rle-must-alias.ll
test/Transforms/GVN/rle-nonlocal.ll
test/Transforms/GVN/rle-phi-translate.ll
test/Transforms/GVN/rle-semidominated.ll