Skip to content

Conversation

@fineg74
Copy link
Contributor

@fineg74 fineg74 commented Jul 25, 2024

No description provided.

@fineg74 fineg74 temporarily deployed to WindowsCILock July 25, 2024 20:24 — with GitHub Actions Inactive
@fineg74 fineg74 temporarily deployed to WindowsCILock July 25, 2024 22:48 — with GitHub Actions Inactive
@fineg74 fineg74 marked this pull request as ready for review July 27, 2024 01:26
@fineg74 fineg74 requested a review from a team as a code owner July 27, 2024 01:26
Copy link
Contributor

@sarnex sarnex left a 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!

Comment on lines 2095 to 2097
for (User *U : Global.users()) {
translateGlobalUse(U, Global.getName().drop_front(PrefLen), ToErase);
}
Copy link
Contributor

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

Copy link
Contributor Author

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same nit here, thanks

Copy link
Contributor Author

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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, thanks

@fineg74
Copy link
Contributor Author

fineg74 commented Jul 30, 2024

@intel/llvm-gatekeepers Could you please merge this patch

@sarnex sarnex merged commit ff35d2f into intel:sycl Jul 30, 2024
@fineg74 fineg74 deleted the syclpostlinkPass branch July 30, 2024 16:23
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