]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/114246 - invalid call argument from DSE
authorRichard Biener <rguenther@suse.de>
Wed, 6 Mar 2024 08:02:31 +0000 (09:02 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 6 Mar 2024 09:27:34 +0000 (10:27 +0100)
commit0249744a9fe0775c2c895727aeebec4c59fd5f95
treef3c62600b0755b443a3005b2969547a31d20044b
parent1157d5de35b41eabe5ee51d532224864173c37bd
tree-optimization/114246 - invalid call argument from DSE

The following makes sure to strip type conversions added by
build_fold_addr_expr before placing the result in a call argument.

PR tree-optimization/114246
* tree-ssa-dse.cc (increment_start_addr): Strip useless
type conversions from the adjusted address.

* gcc.dg/torture/pr114246.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr114246.c [new file with mode: 0644]
gcc/tree-ssa-dse.cc
This page took 0.071084 seconds and 6 git commands to generate.