Skip to content
Commit 7ad3cd8c authored by Dan Gohman's avatar Dan Gohman
Browse files

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.

llvm-svn: 53879
parent 7ed03c4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment