Re: Improve handling of memory operands in ipa-icf 2/4

2020-11-12 Thread Richard Biener
On Thu, 12 Nov 2020, Jan Hubicka wrote: > Hi, > this is updated patch. It fixes the comparsion of bitfield where I now > check that they bitsizes and bitoffsets match (and OEP_ADDRESSOF is not > used for bitfield references). > I also noticed problem with dependence clique in ao_refs_may_alias th

Re: Improve handling of memory operands in ipa-icf 2/4

2020-11-12 Thread Jan Hubicka
Hi, this is updated patch. It fixes the comparsion of bitfield where I now check that they bitsizes and bitoffsets match (and OEP_ADDRESSOF is not used for bitfield references). I also noticed problem with dependence clique in ao_refs_may_alias that I copied here. Instead of base rbase should be

Improve handling of memory operands in ipa-icf 2/4

2020-11-11 Thread Jan Hubicka
Hi, this patch iplements new class ao_compare that is derived from operand_compare and adds a method to compare and hash ao_refs. This is used by ICF to enable more merging. Comparsion is done as follows 1) Verify that the memory access will happen at the same address and will have same size.