Fold &MEM[0 + CST]->a.b.c to a constant
authorRichard Biener <rguenther@suse.de>
Tue, 14 Jan 2020 14:25:26 +0000 (15:25 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 12 May 2020 06:27:59 +0000 (08:27 +0200)
commitfe8c8f1e5ed61f00c14ff36caf4f510a7a09781d
tree8242cf9b367088bf6fc55a0daa8162c3e86a28a2
parentbb63ca63e744c08bc5a9ffa53df62ea35f098b0b
Fold &MEM[0 + CST]->a.b.c to a constant

This canonicalizes those to a constant literal.

2020-05-12  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
literal constant &MEM[..] to a constant literal.
gcc/ChangeLog
gcc/gimple-fold.c