commit | 1feeeecf4cb28e34c7577719087aa41ec6610b28 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Thu Jan 26 19:13:45 2006 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Thu Jan 26 19:13:45 2006 +0000 |
tree | eefd0c8ffc78b8aec6c79adfc55efe9d17976c88 | |
parent | e4da1ddadae9aebac6265060626bb7cced4fc863 [diff] |
Another folding problem: if a node r/w chain or flag, don't fold it if it has already been selected. The number of use check is not strong enough since a node can be replaced with newly created target node. e.g. If the original node has two uses, when it is selected for one of the uses it is replaced with another. Each node now has a single use but isel still should not fold it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25651 91177308-0d34-0410-b5e6-96231b3b80d8