OSDN Git Service

[cmake] Enable reverse iteration by default through build macro
authorMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 6 Jun 2017 00:36:09 +0000 (00:36 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Tue, 6 Jun 2017 00:36:09 +0000 (00:36 +0000)
commit20350be310e85c72c3fca145ad02b054e73d42a1
treeeb163310f223221bf0f467fac8c74075dd7db8e5
parente6c9b7e113bf4235624c8587fab695212be7d78b
[cmake] Enable reverse iteration by default through build macro

Summary:
Reverse iteration can be turned on, by default, by setting -DLLVM_REVERSE_ITERATION:BOOL=ON during cmake.
With this enabled, we can uncover lots of cases of non-determinism in codegen by simply running our tests (without any other change).
We can then setup a buildbot which will have this turned on by default. Initially, a lot of unit tests will fail in this configuration.
Once we start fixing non-determinism issues, we can gradually make this a blocker for patches.

Reviewers: davide, dblaikie, mehdi_amini, dberlin

Reviewed By: dblaikie

Subscribers: probinson, mgorny, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304757 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake
include/llvm/ADT/SmallPtrSet.h
include/llvm/Config/abi-breaking.h.cmake