Unnecessary zeroing of boxed default instances #101544
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
M
gets compiled into:We optimized the box into a sequence of NEWSFAST+initialize fields, realized we're doing zero init (initialization is done with a mov instead of a write barrier), but failed to realize NEWSFAST already returns a zero-initialized thing and initializing fields to zero is unnecessary.
The text was updated successfully, but these errors were encountered: