]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/110496 - TYPE_PRECISION issue with store-merging
authorRichard Biener <rguenther@suse.de>
Fri, 30 Jun 2023 10:03:26 +0000 (12:03 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 30 Jun 2023 10:59:36 +0000 (12:59 +0200)
commit4f8e31e01bd04ab17a53deb5aa44bd82c885b228
treeb9bbfa488e39d5cbf198b3fa82203d9bd42f2014
parent50cb9df7209125f9466336d23efdd4fbeda9c4d5
tree-optimization/110496 - TYPE_PRECISION issue with store-merging

When store-merging looks for bswap opportunities we also handle
BIT_FIELD_REFs where we verify the refed object is of scalar
type but we don't check for the result type we eventually use.
That's done later but after we eventually query TYPE_PRECISION.
The following re-orders this.

PR tree-optimization/110496
* gimple-ssa-store-merging.cc (find_bswap_or_nop_1): Re-order
verifying and TYPE_PRECISION query for the BIT_FIELD_REF case.

* gcc.dg/pr110496.c: New testcase.
gcc/gimple-ssa-store-merging.cc
gcc/testsuite/gcc.dg/pr110496.c [new file with mode: 0644]
This page took 0.065358 seconds and 5 git commands to generate.