]> 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 <rguenther@suse.de>
Sun, 11 May 2025 08:54:27 +0000 (10:54 +0200)
commit94d10c0ef2dca46f1c043c81bcda67ee7e2efc67
tree114c21ba7bbd91d3b13604424529608776248f14
parent4017b37de2b39f4bbd7bb9524101558002a258e8
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.

(cherry picked from commit da377e7ebf84a05943fb768eaeb7d682dee865fa)
gcc/testsuite/gcc.dg/vect/vect-early-break_135-pr120143.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc