Coverage requires the spans for the FnSig and hir::Body.
It also uses the hir::Body to compute a function hash, required by LLVM intrinsic instrprof.coverage.
According to this code review comment:
#79109 (comment)
MIR strives to be a self-contained IR which means that operations on it should only use the information in MIR
Consider improving MIR to provide the information needed, to avoid going back to HIR for it.
Coverage requires the spans for the
FnSigandhir::Body.It also uses the
hir::Bodyto compute a function hash, required by LLVM intrinsicinstrprof.coverage.According to this code review comment:
#79109 (comment)
Consider improving MIR to provide the information needed, to avoid going back to HIR for it.