-
Notifications
You must be signed in to change notification settings - Fork 823
Implement MethodImplOptions.AggressiveInlining
flag - fixes #1637
#3154
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
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
56c19c8
Implement `MethodImplOptions.AggressiveInlining` flag - fixes #1637
forki 0f33e12
More inlining
forki 2c4f4db
Merge branch 'i1637' of https://github.com/forki/visualfsharp into fo…
dsyme 31c8082
remove change to TAST
dsyme 03d5b01
Merge pull request #25 from dsyme/forki-i1637
dsyme f390088
fix build
dsyme a79731a
Merge pull request #26 from dsyme/forki-i1637
dsyme b9fd6e6
add test
dsyme 8ce9056
Merge branch 'i1637' of https://github.com/forki/visualfsharp into fo…
dsyme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,8 @@ type ValInline = | |
| PseudoVal | ||
/// Indicates the value is inlined but the .NET IL code for the function still exists, e.g. to satisfy interfaces on objects, but that it is also always inlined | ||
| Always | ||
/// Indicates the value will be inlined be inlined by the .NET runtime | ||
| Aggressive | ||
/// Indicates the value may optionally be inlined by the optimizer | ||
| Optional | ||
/// Indicates the value must never be inlined by the optimizer | ||
|
@@ -71,7 +73,7 @@ type ValInline = | |
member x.MustInline = | ||
match x with | ||
| ValInline.PseudoVal | ValInline.Always -> true | ||
| ValInline.Optional | ValInline.Never -> false | ||
| ValInline.Optional | ValInline.Aggressive | ValInline.Never -> false | ||
|
||
/// A flag associated with values that indicates whether the recursive scope of the value is currently being processed, and | ||
/// if the value has been generalized or not as yet. | ||
|
@@ -123,6 +125,7 @@ type ValFlags(flags:int64) = | |
(match inlineInfo with | ||
| ValInline.PseudoVal -> 0b0000000000000000000L | ||
| ValInline.Always -> 0b0000000000000010000L | ||
| ValInline.Aggressive -> 0b0100L | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not right - 0b0100L is already used by |
||
| ValInline.Optional -> 0b0000000000000100000L | ||
| ValInline.Never -> 0b0000000000000110000L) ||| | ||
(match isMutable with | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
I'm not convinced we need to change the TAST (or Pickle) at all?