mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The overhead of uniquing the locations in a Densemap isn't worth any of the potential memory savings: While this adds an extra pointer and unsigned to each SILInstruction, any extra memory is completely lost in the noise (measured on a release -emit-ir build of the x86_64 stdlib). This is not too surpising as the ratio between SILInstructions and unique SILLocations is not very high and the DenseMap also needs space. <rdar://problem/22706994>
12 KiB
12 KiB