Skip to content

JIT assertions are attributed to the wrong phase #32497

@BruceForstall

Description

@BruceForstall

JIT assertions, such as in #32466:

Assertion failed: '!emitComp->opts.compReloc || memBase->IsIconHandle() || memBase->IsIntegralConst(0)' in 'nullsdarr:f()' during 'Linear scan register alloc'

are attributed to the last phase where BeginPhase or EndPhase was called. Unless using the Phase object, we don't use BeginPhase calls, so assertions are attributed to the previous phase, which is confusing. The above assertion is presumably during codegen, not LSRA.

@AndyAyersMS @dotnet/jit-contrib

category:implementation
theme:jit-coding-style
skill-level:beginner
cost:small

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions