https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115129
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |14.1.0
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot
gnu.org
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Target Milestone|--- |12.4
Last reconfirmed| |2024-05-17
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
Setting value number of p_4 to 0B (changed)
Value numbering stmt = realloc (p_4, s_5(D));
...
<bb 3> [local count: 8687547538]:
__builtin_malloc (s_5(D));
but virtual operands are not updated. Somewhere we fold this and break things
this way. gimple_fold_builtin_realloc likely.