commit | dbe664adcddd8610952968d86791478c874cf1cd | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jan 19 21:44:21 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jan 19 21:44:21 2009 +0000 |
tree | 5d0f6b564ca7fc6a240dde912ad6e20b096def3f | |
parent | 2c7ed11d93239dacf81540e2307f0db456bb9122 [diff] |
Fix SelectionDAG::ReplaceAllUsesWith to behave correctly when uses are added to the From node while it is processing From's use list, because of automatic local CSE. The fix is to avoid visiting any new uses. Fix a few places in the DAGCombiner that assumed that after a RAUW call, the From node has no users and may be deleted. This fixes PR3018. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62533 91177308-0d34-0410-b5e6-96231b3b80d8