aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2014-05-31 16:23:20 +0000
committerAdam Nemet <anemet@apple.com>2014-05-31 16:23:20 +0000
commitb4690e3fd1c6b660fc4e9ef58ab8b34964a1c7a9 (patch)
treec3d4b77f9a34401edbb6a3c75122624416e19da2 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent7d39430a14a8846f53069aa232e77a63a171f636 (diff)
downloadllvm-b4690e3fd1c6b660fc4e9ef58ab8b34964a1c7a9.zip
llvm-b4690e3fd1c6b660fc4e9ef58ab8b34964a1c7a9.tar.gz
llvm-b4690e3fd1c6b660fc4e9ef58ab8b34964a1c7a9.tar.bz2
[SelectionDAG] Force cycle detection in AssignTopologicalOrder before aborting
DAG cycle detection is only enabled with ENABLE_EXPENSIVE_CHECKS. However we can run it just before we would crash in order to provide more informative diagnostics. Now in addition to the "Overran sorted position" message we also get the Node printed if a cycle was detected. Tested by building several configs: Debug+Assert, Debug+Assert+Check (this is ENABLE_EXPENSIVE_CHECKS), Release+Assert and Release. Also tried that the AssignTopologicalOrder assert produces the expected results. llvm-svn: 209977
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
0 files changed, 0 insertions, 0 deletions