]> 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 <rguenther@suse.de>
Mon, 6 May 2024 12:00:43 +0000 (14:00 +0200)
commitc4795316b2d92c9edd3d86ffa11425c82d1e379c
tree34bddcb914b65fb1c1aa8f470d4f1d0b8e864bf2
parent47cd06042237bf2d4f05b8355362bc038f6fa445
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