]> git.ipfire.org Git - thirdparty/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 <rguenth@gcc.gnu.org>
Fri, 4 Apr 2025 10:12:56 +0000 (12:12 +0200)
commitbfb1b0f8bb9fe76071fb02840002a17ed00a8999
tree53ff4592b26b109c884d9aa3939801b7d888b8f8
parentb444c3061a14d12d164d82345a1836f5fbd21939
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.

(cherry picked from commit 0249744a9fe0775c2c895727aeebec4c59fd5f95)
gcc/testsuite/gcc.dg/torture/pr114246.c [new file with mode: 0644]
gcc/tree-ssa-dse.cc