commit | 5eee427594c87a037a108047b3cd39c14f724752 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Jan 26 01:09:19 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Jan 26 01:09:19 2008 +0000 |
tree | 7a5d62eac2a0a292784fc5d738aaff1ee206f391 | |
parent | 9967c15183e023b7cf59b094d69530ffeca1aa0f [diff] |
Fix some bugs in SimplifyNodeWithTwoResults where it would call deletenode to delete a node even if it was not dead in some cases. Instead, just add it to the worklist. Also, make sure to use the CombineTo methods, as it was doing things that were unsafe: the top level combine loop could touch dangling memory. This fixes CodeGen/Generic/2008-01-25-dag-combine-mul.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46384 91177308-0d34-0410-b5e6-96231b3b80d8