Skip to content

[SYCL] [NFC] Replace redecl walk with getMostRecentDecl. #1915

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 1 commit into from
Jun 18, 2020

Conversation

erichkeane
Copy link
Contributor

Clang ensures that the latest declaration of a function has all of the
attributes, so doing a search through the declarations isn't necessary.

This patch replaces our expensive search through the redeclaration list
with a getMostRecentDecl.

Clang ensures that the latest declaration of a function has all of the
attributes, so doing a search through the declarations isn't necessary.

This patch replaces our expensive search through the redeclaration list
with a getMostRecentDecl.
Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@premanandrao premanandrao 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 the change, Erich.

Copy link
Contributor

@Fznamznon Fznamznon left a comment

Choose a reason for hiding this comment

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

In case if someone is waiting for me.

@bader
Copy link
Contributor

bader commented Jun 18, 2020

buildbot/Lit_With_Cuda failure seems to be a known problem - #1919.
I'll restart the job to verify.

@bader bader merged commit b7bdcbe into intel:sycl Jun 18, 2020
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.

5 participants