Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization flags are removed for all tests #6429

Open
philramsey-arm opened this issue Nov 9, 2023 · 0 comments
Open

Optimization flags are removed for all tests #6429

philramsey-arm opened this issue Nov 9, 2023 · 0 comments

Comments

@philramsey-arm
Copy link
Collaborator

CMakeLists.txt in suite/tests has the line
string(REGEX REPLACE "-O[0-9]? " " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
which strips out any optimization flags for the tests. Optimization is then selectively added later, using the optimize() or add_sve_flags() functions.

A better approach would be to allow optimization by default, and strip optimization flags from those tests that cannot support them. This was investigated and proved to be non-trivial as the client tests use _DR_set_compile_flags() to set the compile flags whereas the core tests use set_cflags(). _DR_set_compile_flags() is a public function and we didn't want to add a blocklist in there.

This issue covers the work to remove the blanket removal of optimization flags and find a way to strip optimization flags from tests that cannot support them, both for core and client tests.

philramsey-arm added a commit that referenced this issue Nov 9, 2023
Build most core tests with SVE flags and high optimisation (-O3), if building
on an AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags more
granular.

Issue: #5365
philramsey-arm added a commit that referenced this issue Nov 9, 2023
Build most core tests with SVE flags and high optimisation (-O3), if building
on an AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags more
granular.

Issue: #5365
philramsey-arm added a commit that referenced this issue Nov 9, 2023
Build most core tests with SVE flags and high optimisation (-O3), if building
on an AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags more
granular.

Issue: #5365
philramsey-arm added a commit that referenced this issue Nov 10, 2023
Build most core tests with SVE flags and high optimisation (-O3), if building
on an AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags more
granular.

Issue: #5365
philramsey-arm added a commit that referenced this issue Nov 10, 2023
Build most core tests with SVE flags and high optimisation (-O3), if
building on a AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags
more granular.

Issue: #5365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant