-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the print-type-sizes async.rs test to opt into the new MIR
transformations added here (regardless of their default settings) and updated the numbers in the output to reflect the improvements those transformations yield.
- Loading branch information
Showing
4 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
print-type-size type: `[async fn body@$DIR/async.rs:14:36: 17:2]`: 16386 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Unresumed`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size variant `Suspend0`: 16385 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size local `.arg`: 8192 bytes | ||
print-type-size local `.__awaitee`: 1 bytes | ||
print-type-size variant `Returned`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size variant `Panicked`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size type: `std::mem::ManuallyDrop<[u8; 8192]>`: 8192 bytes, alignment: 1 bytes | ||
print-type-size field `.value`: 8192 bytes | ||
print-type-size type: `std::mem::MaybeUninit<[u8; 8192]>`: 8192 bytes, alignment: 1 bytes | ||
print-type-size variant `MaybeUninit`: 8192 bytes | ||
print-type-size field `.uninit`: 0 bytes | ||
print-type-size field `.value`: 8192 bytes | ||
print-type-size type: `[async fn body@$DIR/async.rs:12:17: 12:19]`: 1 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Unresumed`: 0 bytes | ||
print-type-size variant `Returned`: 0 bytes | ||
print-type-size variant `Panicked`: 0 bytes | ||
print-type-size type: `std::mem::ManuallyDrop<[async fn body@$DIR/async.rs:12:17: 12:19]>`: 1 bytes, alignment: 1 bytes | ||
print-type-size field `.value`: 1 bytes | ||
print-type-size type: `std::mem::MaybeUninit<[async fn body@$DIR/async.rs:12:17: 12:19]>`: 1 bytes, alignment: 1 bytes | ||
print-type-size variant `MaybeUninit`: 1 bytes | ||
print-type-size field `.uninit`: 0 bytes | ||
print-type-size field `.value`: 1 bytes | ||
print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Ready`: 0 bytes | ||
print-type-size field `.0`: 0 bytes | ||
print-type-size variant `Pending`: 0 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
print-type-size type: `[async fn body@$DIR/async.rs:14:36: 17:2]`: 8194 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Unresumed`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size variant `Suspend0`: 8193 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size local `.__awaitee`: 1 bytes | ||
print-type-size variant `Returned`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size variant `Panicked`: 8192 bytes | ||
print-type-size upvar `.arg`: 8192 bytes | ||
print-type-size type: `[async fn body@$DIR/async.rs:12:17: 12:19]`: 1 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Unresumed`: 0 bytes | ||
print-type-size variant `Returned`: 0 bytes | ||
print-type-size variant `Panicked`: 0 bytes | ||
print-type-size type: `std::mem::ManuallyDrop<[async fn body@$DIR/async.rs:12:17: 12:19]>`: 1 bytes, alignment: 1 bytes | ||
print-type-size field `.value`: 1 bytes | ||
print-type-size type: `std::mem::MaybeUninit<[async fn body@$DIR/async.rs:12:17: 12:19]>`: 1 bytes, alignment: 1 bytes | ||
print-type-size variant `MaybeUninit`: 1 bytes | ||
print-type-size field `.uninit`: 0 bytes | ||
print-type-size field `.value`: 1 bytes | ||
print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes | ||
print-type-size discriminant: 1 bytes | ||
print-type-size variant `Ready`: 0 bytes | ||
print-type-size field `.0`: 0 bytes | ||
print-type-size variant `Pending`: 0 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters