commit | 7375fbcbf261527638a08d80c8152778558c29d8 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 21 21:45:02 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 21 21:45:02 2008 +0000 |
tree | adb9231d9bb1f71f4c8bb1a2f58de4700800d9a4 | |
parent | 358033102ffaef4d1afb1c0b7e96440906f0b48f [diff] |
Fix a bug in LSR's dead-PHI cleanup. If a PHI has a def-use chain that leads into a cycle involving a different PHI, LSR got stuck running around that cycle looking for the original PHI. To avoid this, keep track of visited PHIs and stop searching if we see one more than once. This fixes PR2570. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53879 91177308-0d34-0410-b5e6-96231b3b80d8