]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/119960 - fix and guard get_later_stmt
authorRichard Biener <rguenther@suse.de>
Tue, 29 Apr 2025 12:52:27 +0000 (14:52 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 Jun 2025 07:47:45 +0000 (09:47 +0200)
commit6bb316973249d460f4dae2c33a0aa5bc2928ef30
treec099c83c2c322b7190d26975dcb00494b2bf613b
parente93f02828faf7dc0df6a4d67b1b6b2a30bd713cb
tree-optimization/119960 - fix and guard get_later_stmt

The following makes get_later_stmt handle stmts from different
basic-blocks in the case they are orderd and otherwise asserts.

* tree-vectorizer.h (get_later_stmt): Robustify against
stmts in different BBs, assert when they are unordered.

(cherry picked from commit a6cfde60d8c744b31b147022e797bbcc371ae092)
gcc/tree-vectorizer.h