commit | 4d3a16f81b2a0f0211b58f2c1e5a28e2bbd432c7 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Dec 09 17:27:45 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Dec 09 17:27:45 2009 +0000 |
tree | 3ca580ee7ed42fff4cc9bc1d98c37ec893e38d07 | |
parent | 16f1692dca19431768e6f113af4acac470f8adf8 [diff] |
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