This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Enable reverse iteration by default through build macro
ClosedPublic

Authored by mgrang on Jun 5 2017, 12:41 PM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mgrang created this revision.Jun 5 2017, 12:41 PM
dblaikie accepted this revision.Jun 5 2017, 12:54 PM

Seems like a good idea to me.

This revision is now accepted and ready to land.Jun 5 2017, 12:54 PM

Does this make the two new tests from D33795 superfluous? i.e. can they be deleted?

mgrang added a comment.Jun 5 2017, 5:35 PM

Does this make the two new tests from D33795 superfluous? i.e. can they be deleted?

We need to have a builder with LLVM_ENABLE_REVERSE_ITERATION enabled by default. Once that is in place we can delete the two tests.
I was reading through http://llvm.org/docs/HowToAddABuilder.html but I do not have a machine to spare. Is there any way we can setup the builder on existing machines?

--Mandeep

This revision was automatically updated to reflect the committed changes.