diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-09-01 22:52:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-09-01 22:52:28 +0000 |
commit | 1453de5aa93c48779e1a5cdedec6e1493f6988eb (patch) | |
tree | db68bb6648c20f5dcedce3f9624ef98c24588ca6 /lib/CodeGen | |
parent | aca36b932958a7e4a27786dd76e37259fbaa67e0 (diff) |
Oops. Bad typo. Without the check of N1.hasOneUse() bad things can happen.
Suppose the TokenFactor can reach the Op:
[Load chain]
^
|
[Load]
^ ^
| |
/ \-
/ |
/ [Op]
/ ^ ^
| .. |
| / |
[TokenFactor] |
^ |
| |
\ /
\ /
[Store]
If we move the Load below the TokenFactor, we would have created a cycle in
the DAG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
0 files changed, 0 insertions, 0 deletions