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

generate fewer __inlineretval temps #6849

Merged
merged 1 commit into from Jun 4, 2017
Merged

Conversation

WalterBright
Copy link
Member

Fewer temps makes the code go faster, as the results are written through to the final output rather than copied.

@@ -281,7 +281,16 @@ public:
// 'return' must not leave in the expand result
return;
static if (asStatements)
result = new ReturnStatement(s.loc, exp);
{
Copy link
Member

Choose a reason for hiding this comment

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

unrelated change

@yebblies
Copy link
Member

yebblies commented Jun 4, 2017

This is pretty ugly but also nothing new for the inliner.

@dlang-bot dlang-bot merged commit 394a27d into dlang:master Jun 4, 2017
@WalterBright WalterBright deleted the inline-tmp branch June 4, 2017 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants