-
-
Notifications
You must be signed in to change notification settings - Fork 15k
target_feature(enable = ...) interferes with core::hint::cold_path #156859
Copy link
Copy link
Closed
Labels
A-codegenArea: Code generationArea: Code generationC-bugCategory: This is a bug.Category: This is a bug.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.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationC-bugCategory: This is a bug.Category: This is a bug.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.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: I expected both to have identical code generation.
Instead, this happened: when
target_featureis enabled it compiles as if thecold_path()isn't there. See this godbolt:Note that
target_feature(enable = "sse2")should be a no-op, both functions are compiled with SSE2 support anyway.Meta
Occurs on both latest nightly and 1.95.