tree-optimization/105250 - adjust fold_convertible_p PR105140 fix
authorRichard Biener <rguenther@suse.de>
Wed, 13 Apr 2022 06:52:57 +0000 (08:52 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 13 Apr 2022 07:55:56 +0000 (09:55 +0200)
commit4e892de6774f86540d36385701aa7b0a2bba5155
treec8e6b7fbf70609f17d6b62b3053a3fa30fe41873
parent6e609e0010c76d708097cbcf1c67fded6010a0e0
tree-optimization/105250 - adjust fold_convertible_p PR105140 fix

The following reverts the original PR105140 fix and goes for instead
applying the additional fold_convert constraint for VECTOR_TYPE
conversions also to fold_convertible_p.  I did not try sanitizing
all of this at this point.

2022-04-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105250
* fold-const.cc (fold_convertible_p): Revert
r12-7979-geaaf77dd85c333, instead check for size equality
of the vector types involved.

* gcc.dg/pr105250.c: New testcase.
gcc/fold-const.cc
gcc/testsuite/gcc.dg/pr105250.c [new file with mode: 0644]