-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Unused MIR statement directly before return #70531
Copy link
Copy link
Closed
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
_5 = discriminant(_1);doesn't have any effect.(Labeling
A-craneliftbecause this prevents codegen of thegoto -> bb4likereturn. Which may result in a few extra instructions being emitted to move registers and jump to the return block for cg_clif.)@rustbot modify labels: +A-mir +A-mir-opt +A-cranelift