Re: [PATCH][RFC] Fix PR54201, share constant pool entries for CONST_VECTORs

2012-08-14 Thread Richard Guenther
On Tue, 14 Aug 2012, Richard Guenther wrote: > > This implements constant pool entry sharing for CONST_VECTORs with the > same bit-pattern by canonicalizing them to the same-sized mode with > the least number of elements. Ideally we would be able to hash and > compare the in-memory representatio

[PATCH][RFC] Fix PR54201, share constant pool entries for CONST_VECTORs

2012-08-14 Thread Richard Guenther
This implements constant pool entry sharing for CONST_VECTORs with the same bit-pattern by canonicalizing them to the same-sized mode with the least number of elements. Ideally we would be able to hash and compare the in-memory representation of a constant (together with its alignment requirement