[CMake] Add -fno-experimental-isel for testing
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 15 Feb 2018 08:10:22 +0000 (08:10 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Thu, 15 Feb 2018 08:10:22 +0000 (08:10 +0000)
commit6f9e25d3824fb7b03dc6a403e1962d80a9c88ebe
treefd123963517b66394022b47f8023f77b9a1cdfa2
parentb65b078d4d9d922ad6d30999a26fd76620298081
[CMake] Add -fno-experimental-isel for testing

GlobalISel doesn't yet implement blockaddress and falls back to
SelectionDAG. This results in additional branch instruction to
the next basic block which breaks the OMPT tests.
Disable GlobalISel for now when compiling the tests because fixing
them is not easily possible. See http://llvm.org/PR36313 for full
discussion history.

Differential Revision: https://reviews.llvm.org/D43195

llvm-svn: 325218
openmp/cmake/DetectTestCompiler/CMakeLists.txt
openmp/cmake/OpenMPTesting.cmake