tree-optimization/111751 - support 1024 bit vector constant reinterpretation
commit70b5c6981fcdff246f90e57e91f3e1667eab2eb3
authorRichard Biener <rguenther@suse.de>
Tue, 10 Oct 2023 11:33:34 +0000 (10 13:33 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 10 Oct 2023 12:17:23 +0000 (10 14:17 +0200)
tree3aeea830608f2b37e95cf475febcb499365d1e7c
parent2f150833b4edaad314f61a91d46b7f871661df15
tree-optimization/111751 - support 1024 bit vector constant reinterpretation

The following ups the limit in fold_view_convert_expr to handle
1024bit vectors as used by GCN and RVV.  It also robustifies
the handling in visit_reference_op_load to properly give up when
constants cannot be re-interpreted.

PR tree-optimization/111751
* fold-const.cc (fold_view_convert_expr): Up the buffer size
to 128 bytes.
* tree-ssa-sccvn.cc (visit_reference_op_load): Special case
constants, giving up when re-interpretation to the target type
fails.
gcc/fold-const.cc
gcc/tree-ssa-sccvn.cc