llvm-6502/unittests
Diego Novillo 97add46aee Fix dominator descendants for unreachable blocks.
When a block is unreachable, asking its dom tree descendants should
return the empty set. However, the computation of the descendants
was causing a segmentation fault because the dom tree node we get
from the basic block is initially NULL.

Fixed by adding a test for a valid dom tree node before we iterate.

The patch also adds some unit tests to the existing dom tree tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196099 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-02 14:08:27 +00:00
..
ADT Make the moved-from SmallPtrSet be a valid, empty, small-state object. 2013-11-20 18:29:56 +00:00
Analysis
Bitcode
CodeGen
DebugInfo
ExecutionEngine [weak vtables] Place class definitions into anonymous namespaces to prevent weak vtables. 2013-11-19 03:08:35 +00:00
IR Fix dominator descendants for unreachable blocks. 2013-12-02 14:08:27 +00:00
MC
Object
Option [CMake] Also OptionTests can be free from add_dependencies() with add_public_tablegen_target(). 2013-11-28 17:04:13 +00:00
Support [block-freq] Update data in test case to be unsigned long long to fix mingw build. 2013-11-22 05:00:51 +00:00
Transforms Add support for software expansion of 64-bit integer division instructions. 2013-11-19 06:54:19 +00:00
CMakeLists.txt
Makefile
Makefile.unittest