]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/108791 - checking ICE with sloppy ADDR_EXPR
authorRichard Biener <rguenther@suse.de>
Wed, 15 Feb 2023 13:00:21 +0000 (14:00 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 16 Feb 2023 07:29:44 +0000 (08:29 +0100)
commit441c466fd4d8b9afd99f585f7c4bfade911c4652
tree9de47cdf76bd117fdcd13dff1e2e94dc323f3c6b
parent384dedaf65db115e9795438d787bc8bd84bb6777
tree-optimization/108791 - checking ICE with sloppy ADDR_EXPR

The following fixes a checking ICE by choosing a more appropriate
type for an ADDR_EXPR built by forwprop.

PR tree-optimization/108791
* tree-ssa-forwprop.cc (optimize_vector_load): Build
the ADDR_EXPR of a TARGET_MEM_REF using a more meaningful
type.

* gcc.dg/torture/pr108791.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr108791.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc