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

Dead-code removes intrinsics #220

Closed
vbgl opened this issue Aug 1, 2022 · 0 comments · Fixed by #221
Closed

Dead-code removes intrinsics #220

vbgl opened this issue Aug 1, 2022 · 0 comments · Fixed by #221

Comments

@vbgl
Copy link
Member

vbgl commented Aug 1, 2022

The following program is compiled to an empty function, which is not incorrect but not the expected behavior:

export fn main() {
  _, _ = #RDTSC();
}
vbgl added a commit that referenced this issue Aug 1, 2022
This prevents source-level intrinsics to be removed by dead-code
elimination.

Fixes #220

Co-authored-by: Vincent Laporte <[email protected]>
vbgl added a commit that referenced this issue Aug 1, 2022
This prevents source-level intrinsics to be removed by dead-code
elimination.

Fixes #220

Co-authored-by: Vincent Laporte <[email protected]>
vbgl added a commit that referenced this issue Aug 29, 2022
This prevents source-level intrinsics to be removed by dead-code
elimination.

Fixes #220

Co-authored-by: Vincent Laporte <[email protected]>
bgregoir added a commit that referenced this issue Aug 31, 2022
This prevents source-level intrinsics to be removed by dead-code
elimination.

Fixes #220

Co-authored-by: Vincent Laporte <[email protected]>
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 a pull request may close this issue.

1 participant