[PATCH] tree-optimization/104162 - CSE of &MEM[ptr].a[i] and ptr + CST

2022-05-05 Thread Richard Biener via Gcc-patches
This adds the capability to value-numbering of treating complex address expressions where the offset becomes invariant as equal to a POINTER_PLUS_EXPR. This restores CSE that is now prevented by early lowering of &MEM[ptr + CST] to a POINTER_PLUS_EXPR. Unfortunately this regresses gcc.dg/asan/pr9

Re: [PATCH] tree-optimization/104162 - CSE of &MEM[ptr].a[i] and ptr + CST

2022-01-26 Thread Jeff Law via Gcc-patches
On 1/26/2022 8:56 AM, Richard Biener via Gcc-patches wrote: This adds the capability to value-numbering of treating complex address expressions where the offset becomes invariant as equal to a POINTER_PLUS_EXPR. This restores CSE that is now prevented by early lowering of &MEM[ptr + CST] to a

[PATCH] tree-optimization/104162 - CSE of &MEM[ptr].a[i] and ptr + CST

2022-01-26 Thread Richard Biener via Gcc-patches
This adds the capability to value-numbering of treating complex address expressions where the offset becomes invariant as equal to a POINTER_PLUS_EXPR. This restores CSE that is now prevented by early lowering of &MEM[ptr + CST] to a POINTER_PLUS_EXPR. Unfortunately this regresses gcc.dg/asan/pr9