]> 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 <rguenth@gcc.gnu.org>
Wed, 30 Apr 2025 12:46:32 +0000 (14:46 +0200)
commita6cfde60d8c744b31b147022e797bbcc371ae092
tree44512ff6b73afe98e5a210c03975f930093ce314
parent51ba233fe2db562390a6e0a3618420889761bc77
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.
gcc/tree-vectorizer.h