-
Notifications
You must be signed in to change notification settings - Fork 796
[ESIMD] Move spirv global translation out of the function processing to improve compilation time #14786
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
Conversation
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.
lgtm besides nitpicks, thanks!
| for (User *U : Global.users()) { | ||
| translateGlobalUse(U, Global.getName().drop_front(PrefLen), ToErase); | ||
| } |
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.
nit: remove braces from loop since it's one line
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.
Fixed
| translateGlobalUse(U, Global.getName().drop_front(PrefLen), ToErase); | ||
| } | ||
| } | ||
| for (auto *CI : ToErase) { |
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.
same nit here, thanks
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.
Fixed
| } | ||
| } | ||
|
|
||
| static void translateGlobalUse(Value *Use, StringRef SpirvGlobalName, |
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.
just wondering, how did this issue come up? do we have an internal tracker for it?
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.
It is nice to have suggestion for original work to lower spirv globals from ~ 3 years ago. Theoretically it should improve compilation performance and reduce amount of code, but I doubt anybody will notice that. It was included into tracker to move ESIMD passes/split LowerESIMD pass to Function Passes
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.
got it, thanks
|
@intel/llvm-gatekeepers Could you please merge this patch |
No description provided.