Skip to content

[polly] Port polly tests to use NPM #90632

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

Merged
merged 2 commits into from
May 15, 2024

Conversation

rahulana-quic
Copy link
Contributor

@rahulana-quic rahulana-quic commented Apr 30, 2024

Even as the NPM has been in use by Polly for a while now, the
majority of the tests continue using the LPM passes. This patch
ports the tests to use the NPM passes (for example, by replacing
a flag such as -polly-detect with -passes=polly-detect following
the NPM syntax for specifying passes) with some exceptions for
some missing features in the new passes. Additionally, the lit
substitution %loadPolly is replaced by the substitution of what
was %loadNPMPolly and %loadNPMPolly is removed.

Even as the NPM has been in use by Polly for a while now, the
majority of the tests continue using the LPM passes. This patch
ports the tests to use the NPM passes (for example, by replacing
a flag such as -polly-detect with -passes=polly-detect following
the NPM syntax for specifying passes) with some exceptions for
some missing features in the new passes.
@rahulana-quic
Copy link
Contributor Author

Some tests such as the following have not been changed yet since some of the prints of the new passes (eg. JSONImportPass, ScopDetect) are not the same as the old passes.

Polly :: CodeGen/MemAccess/create_arrays.ll
Polly :: CodeGen/MemAccess/create_arrays_heap.ll
Polly :: CodeGen/MemAccess/default_aligned_new_access_function.ll
Polly :: CodeGen/MemAccess/map_scalar_access.ll
Polly :: CodeGen/MemAccess/simple_analyze.ll
Polly :: CodeGen/OpenMP/new_multidim_access.ll
Polly :: DeLICM/reduction_constant_selfconflict.ll
Polly :: ScopDetect/base_pointer.ll
Polly :: ScopDetect/tlr_is_hoistable_load.ll
Polly :: ScopInfo/aliasing_many_parameters_not_all_involved.ll
Polly :: ScopInfo/bool-addrec.ll
Polly :: ScopInfo/error-blocks-3.ll
Polly :: ScopInfo/multidim_invalid_dimension.ll
Polly :: ScopInfo/pr38218.ll
Polly :: Simplify/redundant_partialwrite.ll

Copy link
Contributor

@aeubanks aeubanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I obviously didn't look through every file, but seems right to me

please mention in the commit description that you've replaced the %loadPolly lit substitution with the previous %loadNPMPolly and removed %loadNPMPolly

Even as the NPM has been in use by Polly for a while now, the
majority of the tests continue using the LPM passes. This patch
ports the tests to use the NPM passes (for example, by replacing
a flag such as -polly-detect with -passes=polly-detect following
the NPM syntax for specifying passes) with some exceptions for
some missing features in the new passes. Additionally, the lit
substitution %loadPolly is replaced by the substitution of what
was %loadNPMPolly and %loadNPMPolly is removed.
Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the work.

@efriedma-quic efriedma-quic merged commit 74d91d9 into llvm:main May 15, 2024
4 checks passed
efriedma-quic added a commit that referenced this pull request May 15, 2024
efriedma-quic added a commit that referenced this pull request May 15, 2024
Reverts #90632.

Causing failures on buildbots that dynamically load polly. Reverting
while we sort it out.
rahulana-quic added a commit to rahulana-quic/llvm-project that referenced this pull request May 21, 2024
Even as the NPM has been in use by Polly for a while now, the
majority of the tests continue using the LPM passes. This patch
ports the tests to use the NPM passes (for example, by replacing
a flag such as -polly-detect with -passes=polly-detect following
the NPM syntax for specifying passes) with some exceptions for
some missing features in the new passes.

Relanding llvm#90632.
efriedma-quic pushed a commit that referenced this pull request May 24, 2024
Even as the NPM has been in use by Polly for a while now, the majority
of the tests continue using the LPM passes. This patch ports the tests
to use the NPM passes (for example, by replacing a flag such as
-polly-detect with -passes=polly-detect following the NPM syntax for
specifying passes) with some exceptions for some missing features in the
new passes.

Relanding #90632.
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

Successfully merging this pull request may close these issues.

4 participants