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

Reduction series : [polly] Make reduction detection checks more robust - part 2 #80721

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

kartcq
Copy link
Contributor

@kartcq kartcq commented Feb 5, 2024

Existing redection detection algorithm does two types of memory checks before marking a load store pair as reduction.
Second check is to verify there is no other memory access in ScopStmt overlapping with the memory of load and store that forms the reduction. Existing check misses cases where there could be probable overlap such as
A[V] += A[P];
In the above case there is chance of overlap between A[V] and A[P] which is missed.
This commit addresses this by removing the parameter from space before checking for compatible space.

Part 1 of this patch : 75297

Existing redection detection algorithm does two types of memory checks
before marking a load store pair as reduction.
Second check is to verify there is no other memory access in ScopStmt
overlapping with the memory of load and store that forms the reduction.
Existing check misses cases where there could be probable overlap such as
	A[V] += A[P];
In the above case there is chance of overlap between A[V] and A[P] which
is missed.
This commit addresses this by removing the parameter from space
before checking for compatible space.
@kartcq kartcq changed the title [polly] Make reduction detection checks more robust - part 2 Reduction series : [polly] Make reduction detection checks more robust - part 2 Feb 5, 2024
Copy link
Collaborator

@efriedma-quic efriedma-quic left a comment

Choose a reason for hiding this comment

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

LGTM

@efriedma-quic efriedma-quic merged commit 283feb4 into llvm:main Feb 12, 2024
4 of 5 checks passed
@kartcq kartcq deleted the reduction_check_2 branch February 28, 2024 06:03
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.

None yet

2 participants