Skip to content

Meta LLVM codegen regression tracking issue #50422

Closed
@nikomatsakis

Description

@nikomatsakis

What is this bug?

From time to time, we encounter regressions that seem to be due to an LLVM misoptimization or other bug (though sometimes it's a case of invalid unsafe code, or rustc generating bad IR). In such cases, we try to narrow the problem down to some LLVM IR that shows the bug independent of Rust; this can then be filed with LLVM and tracked separately. This metabug serves to track those sorts of bugs, and specifically cases where we have not yet managed to create a reproducible test case.

Indications that a bug may fit this category

  • A common symptom is that enabling or disabling LTO causes the bug to appear or disappear.
  • Similarly, bugs that appear shortly after LLVM upgades are common candidates.

Guide to diagnosing

If you'd like to help out, @pnkfelix and @nagisa plan to write a guide for how to extract LLVM IR from rustc. It has sadly not yet been written.

Tracked issues

Priority

This bug is sometimes marked P-high when we find that there are a lot of such problems not yet diagnosed.

Metadata

Metadata

Assignees

Labels

A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationC-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.metabugIssues about issues themselves ("bugs about bugs")

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions