Add a minor optimization: if we haven't changed the operands of an
authorChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 17:27:45 +0000 (17:27 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 17:27:45 +0000 (17:27 +0000)
commit4d3a16f81b2a0f0211b58f2c1e5a28e2bbd432c7
tree3ca580ee7ed42fff4cc9bc1d98c37ec893e38d07
parent16f1692dca19431768e6f113af4acac470f8adf8
Add a minor optimization: if we haven't changed the operands of an
add, there is no need to scan the world to find the same add again.
This invalidates the previous testcase, which wasn't wonderful anyway,
because it needed a run of instcombine to permute the use-lists in
just the right way to before GVN was run (so it was really fragile).
Not a big loss.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90973 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PHITransAddr.cpp
test/Transforms/GVN/crash-2.ll [deleted file]