Constant pool should share values #35268
Labels
arch-x64
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
JitUntriaged
CLR JIT issues needing additional triage
optimization
Milestone
Doubles added to constant pool are not shared: the same constant appearing multiple times appears multiple times in the constant pool.
Using the example from #35257:
The generated x64 assembly is:
In this case, RWD00, RWD08, and RWD24 are identical, and RWD16 and RWD32 are identical.
The constant pool is (conceptually) read-only (I believe), so we only need one of each unique value in the table.
category:cq
theme:constant-pool
skill-level:intermediate
cost:medium
The text was updated successfully, but these errors were encountered: