Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Jun 25, 2020

@eerhardt pointed out that blazor was using some logic copied from one of our unused tasks, left over from when we shipped ILLink.Tasks OOB. This removes the unused tasks.

Also removes the unused clearinitlocals optimization. Fixes #1256.

@sbomer sbomer requested a review from marek-safar as a code owner June 25, 2020 00:56
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Looks good, after the type-o @marek-safar pointed out is fixed.

/// Boolean specifying whether to enable clearinitlocals optimization globally.
/// Maps to '--enable-opt clearinitlocals' or '--disable-opt clearinitlocals'.
/// </summary>
public bool ClearInitLocals { set => _clearInitLocals = value; }
Copy link
Member

Choose a reason for hiding this comment

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

Note that once you remove this, the line in the SDK that sets this is going to fail when the new ILLink task version is brought in:

https://github.com/dotnet/sdk/blob/12d968b2be23e1d581a4a92b915ce0d61e14eb11/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.ILLink.targets#L103

Copy link
Member Author

Choose a reason for hiding this comment

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

Like #1292, I'll wait for the SDK changes to flow into the linker, to get the integration tests passing.

sbomer added a commit to sbomer/sdk that referenced this pull request Jun 25, 2020
@sbomer sbomer self-assigned this Jun 25, 2020
sbomer added a commit to dotnet/sdk that referenced this pull request Jun 29, 2020
* Remove unsupported linker argument

See dotnet/linker#1295

* Also remove test
@sbomer sbomer force-pushed the cleanupUnusedCode branch from 4f42ca4 to 2753a38 Compare July 10, 2020 16:59
sbomer added 3 commits July 10, 2020 17:00
These were used in the MSBuild logic that shipped with the OOB ILLink.Tasks.
They are no longer used now that the linker ships with the SDK.
@sbomer sbomer force-pushed the cleanupUnusedCode branch from 2753a38 to 7cb82a9 Compare July 10, 2020 17:01
@sbomer sbomer merged commit c019f7a into dotnet:master Jul 10, 2020
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
)

* Remove unused tasks

These were used in the MSBuild logic that shipped with the OOB ILLink.Tasks.
They are no longer used now that the linker ships with the SDK.

* Remove ClearInitLocals optimization

Fixes dotnet/linker#1256

* Fix build and typo

Commit migrated from dotnet/linker@c019f7a
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.

Remove clearinitlocals optimization

3 participants