This series fixes wrong-code due to redundant store removal and a missed case with same-val store skipping and load reference hashtable insertion.
Bootstrapped and tested on x86_64-unknown-linux-gnu, I'll push (hoping for sashiko to pick a series up with a cover letter added) later. Richard Biener (2): Allow redundant store skipping itself on loop backedge tree-optimization/128818 - wrong-code with VN skipping same-val store gcc/testsuite/gcc.dg/torture/pr128818-1.c | 30 +++++++++++++++++++ gcc/testsuite/gcc.dg/torture/pr128818-2.c | 35 +++++++++++++++++++++++ gcc/testsuite/gcc.dg/torture/pr128818-3.c | 35 +++++++++++++++++++++++ gcc/testsuite/gcc.dg/tree-ssa/pr91091-2.c | 15 ---------- gcc/tree-ssa-sccvn.cc | 30 +++++++++++++------ gcc/tree-ssa-sccvn.h | 2 +- 6 files changed, 122 insertions(+), 25 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/torture/pr128818-1.c create mode 100644 gcc/testsuite/gcc.dg/torture/pr128818-2.c create mode 100644 gcc/testsuite/gcc.dg/torture/pr128818-3.c delete mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr91091-2.c -- 2.51.0
