]> 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>
Thu, 16 May 2024 09:55:47 +0000 (11:55 +0200)
commit46b2e98983ebc62440c43217f2b3bbe72f8b0191
tree3a0141588aee54f45f8f15f5a0fd6d803f861ed7
parent42a0393655d8e4662ba001c3759cf00b639eddb9
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 20ebcaf826c91ddaf2aac35417ec1e5e6d31ad50)
gcc/internal-fn.cc