Skip to content

Conversation

@Mel-Chen
Copy link
Contributor

@Mel-Chen Mel-Chen commented Jan 3, 2025

This patch adds runtime test case for vectorization of AnyOf reduction idiom:

int32_t Rdx = -1;
for (unsigned I = 0; I < TC; I++) {
  Rdx = A[I] > B[I] ? 3 : Rdx;
}
return Rdx;

Improving test coverage, and please refer the issue llvm/llvm-project#120405.

@Mel-Chen
Copy link
Contributor Author

Ping

Copy link
Contributor

@fhahn fhahn left a comment

Choose a reason for hiding this comment

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

LGTM, but needs exit 0 in the reference output I think. might be good to run and check again to make sure everything passes

@Mel-Chen
Copy link
Contributor Author

Passed with -mcpu=sifive-x280 -O3 -mllvm -force-tail-folding-style=data-with-evl -mllvm -prefer-predicate-over-epilogue=predicate-dont-vectorize.

@Mel-Chen Mel-Chen merged commit 8946a3f into llvm:main Jan 13, 2025
1 check passed
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.

2 participants