[Bug middle-end/94267] New: Missed folding of &TARGET_MEM_REF
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 08:17:59 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94267
Bug ID: 94267
Summary: Missed folding of &TARGET_MEM_REF
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
Seen in PR94266 IVOPTs can generate &TARGET_MEM_REF[ptr_1 + 0] which we
obviously should represent as plain ptr_1, possibly casted. Likewise
&TARGET_MEM_REF[ptr_1 + 4] should be canonicalized to &MEM_REF[ptr_1 + 4]
or even a POINTER_PLUS_EXPR.
More information about the Gcc-bugs
mailing list