]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/114734 - wrong code with expand_call_mem_ref
authorRichard Biener <rguenther@suse.de>
Fri, 26 Apr 2024 13:47:13 +0000 (15:47 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 6 May 2024 12:08:28 +0000 (14:08 +0200)
commit20ebcaf826c91ddaf2aac35417ec1e5e6d31ad50
treeec5a24b190e93c2ee4619f234c8a72048d582aae
parentc4795316b2d92c9edd3d86ffa11425c82d1e379c
middle-end/114734 - wrong code with expand_call_mem_ref

When expand_call_mem_ref looks at the definition of the address
argument to eventually expand a &TARGET_MEM_REF argument together
with a masked load it fails to honor constraints imposed by SSA
coalescing decisions.  The following fixes this.

PR middle-end/114734
* internal-fn.cc (expand_call_mem_ref): Use
get_gimple_for_ssa_name to get at the def stmt of the address
argument to honor SSA coalescing constraints.

(cherry picked from commit 4d3a5618de5a949c61605f545f90e81bc0000502)
gcc/internal-fn.cc