-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-codegenArea: Code generationArea: Code generationI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.
Description
When we see a direct call to mem::transmute, we should just inline it in the frontend. This has two important benefits, one obvious and one not-so-obvious: (1) it reduces compilation time; (2) it can often avoid one memcpy, because we can simply bitcast the destination instead of bitcasting the source.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationI-compiletimeIssue: Problems and improvements with respect to compile times.Issue: Problems and improvements with respect to compile times.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.