Skip to content

inline raise and others #3239

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 5 commits into from
Jun 23, 2017
Merged

inline raise and others #3239

merged 5 commits into from
Jun 23, 2017

Conversation

dsyme
Copy link
Contributor

@dsyme dsyme commented Jun 22, 2017

Address suggestion #3121

It is correct that the debugging experience is nicer if this is done. I've noticed this several times recently

We may as well mark a couple of other simple functions as "inline" too

@@ -2189,7 +2189,7 @@ namespace Microsoft.FSharp.Core
/// <param name="x">The input value.</param>
/// <returns>The same value.</returns>
[<CompiledName("Identity")>]
val id : x:'T -> 'T
val inline id : x:'T -> 'T
Copy link
Contributor

Choose a reason for hiding this comment

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

that one is important ;-)
But would it be automatically inlined because of beta reduction?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In optimized code all these are always inlined.

@dsyme
Copy link
Contributor Author

dsyme commented Jun 22, 2017

Failing codegen tests. Serves me right :)

CodeGen\EmittedIL\ComputationExpressions (ComputationExpr04.fs) -- failed
CodeGen\EmittedIL\QueryExpressionStepping (Linq101Aggregates01.fs - CodeGen) -- failed
CodeGen\EmittedIL\SeqExpressionStepping (SeqExpressionSteppingTest7.fs - NetFx40) -- failed
CodeGen\EmittedIL\TestFunctions (TestFunction3b.fs - NetFx40) -- failed
CodeGen\EmittedIL\TestFunctions (TestFunction3c.fs - NetFx40) -- failed

@dsyme
Copy link
Contributor Author

dsyme commented Jun 22, 2017

OK, this is ready

@KevinRansom KevinRansom merged commit 6523766 into dotnet:master Jun 23, 2017
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.

4 participants