This is an archive of the discontinued LLVM Phabricator instance.

[cfi] Run tests with and without lld and thinlto.
ClosedPublic

Authored by eugenis on Apr 7 2017, 6:23 PM.

Details

Reviewers
pcc
Summary

Run tests in all configurations:
(standalone, with devirtualization) * (gold, lld) * (lto, thinlto)

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis created this revision.Apr 7 2017, 6:23 PM
eugenis updated this revision to Diff 94906.Apr 11 2017, 4:23 PM
pcc added inline comments.Apr 11 2017, 4:36 PM
test/cfi/CMakeLists.txt
0–2

This part could be factored into a function at this point.

6

I think this will cause us to run the tests twice with lld on Windows.

eugenis updated this revision to Diff 96022.Apr 20 2017, 2:43 PM
eugenis retitled this revision from [cfi] Run the entire CFI test suite with LLD, if available to [cfi] Run tests with and without lld and thinlto..
eugenis edited the summary of this revision. (Show Details)
pcc added inline comments.Apr 20 2017, 3:24 PM
test/cfi/cross-dso/lit.local.cfg
12 ↗(On Diff #96022)

I thought you mentioned that cross-DSO already works for the most part under ThinLTO. If not, you can revert your change to stats.cpp.

test/cfi/lit.cfg
4

Why is this change necessary now?

test/lit.common.cfg
132

Are you using this feature name?

eugenis updated this revision to Diff 96050.Apr 20 2017, 4:23 PM
eugenis marked an inline comment as done.
eugenis added inline comments.
test/cfi/cross-dso/lit.local.cfg
12 ↗(On Diff #96022)

Good catch. That was meant to go in cross-dso/icall/lit.local.cfg.

test/cfi/lit.cfg
4

I can do it in a separate change if you want. Now we have a lot more different configs, so this is becoming important.

Failing Tests (20):

cfi :: cross-dso/icall/dlopen.cpp
cfi :: cross-dso/icall/dlopen.cpp
cfi :: cross-dso/icall/dlopen.cpp
cfi :: cross-dso/icall/dlopen.cpp
cfi :: cross-dso/icall/icall-from-dso.cpp
cfi :: cross-dso/icall/icall-from-dso.cpp
cfi :: cross-dso/icall/icall-from-dso.cpp
cfi :: cross-dso/icall/icall-from-dso.cpp
cfi :: cross-dso/icall/icall.cpp
cfi :: cross-dso/icall/icall.cpp
cfi :: cross-dso/icall/icall.cpp
cfi :: cross-dso/icall/icall.cpp
cfi :: cross-dso/stats.cpp
cfi :: cross-dso/stats.cpp
cfi :: cross-dso/stats.cpp
cfi :: cross-dso/stats.cpp
cfi :: icall/external-call.c
cfi :: icall/external-call.c
cfi :: icall/external-call.c
cfi :: icall/external-call.c

(^ without the change)

test/lit.common.cfg
132

Yes! Renamed to "lld-available".

pcc accepted this revision.Apr 20 2017, 5:52 PM

LGTM

test/cfi/lit.cfg
4

I see, this is fine either as part of this change or as a separate change.

This revision is now accepted and ready to land.Apr 20 2017, 5:52 PM
eugenis closed this revision.Apr 21 2017, 11:24 AM

r301016