-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[SVE] Check for SVE target in VectorizeLoop #16893
Conversation
This is a follow up from #16782, it makes sure that scalable vectors are created only for SVE target. In this implementation we check for target in function attributes, so we'd rely on |
9b91c53
to
8c95c41
Compare
I moved the implementation to use the current target since changing the graph executor's pipeline is breaking lots of CUDA tests. |
Check that we are compiling for an SVE enabled target when the extent of a loop marked for vectorizing has a vscale dependent extent.
Use Target::Current() in LoopVectorizer to check for SVE Change-Id: I15363bad540d6752d6c2098c93efce25c107309b
Change-Id: I0569534397a2d0db9587db6424b1674846a76079
8c95c41
to
acb0e74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ekalda, LGTM!
Thanks @ekalda! |
Check that we are compiling for an SVE enabled target when the extent of a loop marked for vectorizing is a vscale dependent expression.
The extent of a loop should be either a positive integer or an vscale dependent expression, in the latter case we'd expect the target to have
has_sve
feature.