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

NFC followups on #48598 #48622

Merged
merged 1 commit into from
Feb 10, 2023
Merged

NFC followups on #48598 #48622

merged 1 commit into from
Feb 10, 2023

Conversation

aviatesk
Copy link
Sponsor Member

  • added missing is_inlineable_constant check in the inlining code of InferenceResult
  • rename is_total to is_foldable_nothrow (since :total subsumes the other program properties too now)
  • updated docstring of Core.Compiler.finish

Copy link
Sponsor Member

@staticfloat staticfloat left a comment

Choose a reason for hiding this comment

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

Thanks Shuhei!

return ConstantCase(quoted(result.result.val))
if is_foldable_nothrow(result.ipo_effects)
res = result.result
if isa(res, Const) && is_inlineable_constant(res.value)
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Ah darn, I must have missed this in a rebase. Thanks!

- added missing `is_inlineable_constant` check in the inlining code of `InferenceResult`
- rename `is_total` to `is_foldable_nothrow` (since `:total` subsumes
  the other program properties too now)
- updated docstring of `Core.Compiler.finish`
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

2 participants