]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/120143 - ICE with failed early break store move
authorRichard Biener <rguenther@suse.de>
Wed, 7 May 2025 07:43:54 +0000 (09:43 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 May 2025 06:36:53 +0000 (08:36 +0200)
commitda377e7ebf84a05943fb768eaeb7d682dee865fa
tree945ca1ee4f317e1595798d37f2babac28ffc38c4
parent9def392a1b63a198d15d972f73b4afc888389d7c
tree-optimization/120143 - ICE with failed early break store move

The early break vectorization store moving was incorrectly trying
to move the pattern stmt instead of the original one which failed
to register and then confused virtual SSA form due to the update
triggered by a degenerate virtual PHI.

PR tree-optimization/120143
* tree-vect-data-refs.cc (vect_analyze_early_break_dependences):
Move/update the original stmts, not the pattern stmts which
lack virtual operands and are not in the IL.

* gcc.dg/vect/vect-early-break_135-pr120143.c: New testcase.
gcc/testsuite/gcc.dg/vect/vect-early-break_135-pr120143.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc