https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123776
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot
gnu.org
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2026-01-23
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is the fix:
```
[apinski@xeond2 gcc]$ git diff gimple-fold.cc
diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc
index 4766187e0b9..1c71a856166 100644
--- a/gcc/gimple-fold.cc
+++ b/gcc/gimple-fold.cc
@@ -5907,6 +5907,7 @@ gimple_fold_partial_load_store (gimple_stmt_iterator
*gsi, gcall *call)
}
gassign *new_stmt = gimple_build_assign (lhs, else_value);
gimple_set_location (new_stmt, gimple_location (call));
+ gimple_move_vops (new_stmt, call);
gsi_replace (gsi, new_stmt, false);
return true;
}
```
I can handle this tomorrow.