summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-21 21:45:02 +0000
committerDan Gohman <gohman@apple.com>2008-07-21 21:45:02 +0000
commit7ad3cd8c9db6edfd9dbbd31fabe793c4032e5f31 (patch)
treeacd86c1dc435b2ea91bd43aa578f36bd295e4b09 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent7ed03c4cdd58ef60896d3ce0cdc766185daff02b (diff)
downloadbcm5719-llvm-7ad3cd8c9db6edfd9dbbd31fabe793c4032e5f31.tar.gz
bcm5719-llvm-7ad3cd8c9db6edfd9dbbd31fabe793c4032e5f31.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud