Skip to content
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

[SYCL][thinLTO] Don't pass -properties and -ir-output-only to sycl-post-link #14501

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

sarnex
Copy link
Contributor

@sarnex sarnex commented Jul 9, 2024

This errors out anyway, so it was just wrong.

@sarnex sarnex marked this pull request as ready for review July 10, 2024 17:23
@sarnex sarnex requested review from a team as code owners July 10, 2024 17:23
@sarnex sarnex requested a review from asudarsa July 10, 2024 17:23
if (OutputType == types::TY_LLVM_BC) {
// single file output requested - this means only perform necessary IR
// transformations (like specialization constant intrinsic lowering) and
// output LLVMIR
addArgs(PostLinkArgs, TCArgs, {"-ir-output-only"});
} else if (!IsUsingLTO || LTOMode != LTOK_Thin) {
addArgs(PostLinkArgs, TCArgs, {"-properties"});
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment explaining why -properties can't be used along with -ir-output-only? Looks good otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thx!

Signed-off-by: Sarnie, Nick <[email protected]>
@sarnex
Copy link
Contributor Author

sarnex commented Jul 10, 2024

@asudarsa Ping on this one? This is causing some internal test failures. Thanks!

Copy link
Contributor

@asudarsa asudarsa left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@asudarsa
Copy link
Contributor

@intel/llvm-gatekeepers

Ready to merge.

Thanks

@steffenlarsen steffenlarsen merged commit 28a39e5 into intel:sycl Jul 11, 2024
14 checks passed
@sarnex
Copy link
Contributor Author

sarnex commented Jul 11, 2024

@asudarsa Thanks so much!

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.

None yet

4 participants