]> git.ipfire.org Git - thirdparty/gcc.git/commit
Properly guard vect_look_through_possible_promotion
authorRichard Biener <rguenther@suse.de>
Fri, 23 Jun 2023 08:08:50 +0000 (10:08 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 23 Jun 2023 09:22:39 +0000 (11:22 +0200)
commit4127e0f3313c961b4b4e5efad85a25c40c2510c2
treecea7bd96181360e0621cc50ead3563b59783c825
parent1fe09b90f856ba27c3e44dda156b28adb5d4d8ea
Properly guard vect_look_through_possible_promotion

The function ends up getting called on VECTOR_TYPEs which it
really isn't prepared for and with the TYPE_PRECISION checking
changes will ICE.  The following exits early when the type
to work on isn't scalar integral.

* tree-vect-patterns.cc (vect_look_through_possible_promotion):
Exit early when the type isn't scalar integral.
gcc/tree-vect-patterns.cc