]> 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>
Tue, 30 Apr 2024 06:46:00 +0000 (08:46 +0200)
commit4d3a5618de5a949c61605f545f90e81bc0000502
tree0fb6dc0742e17f17c95df57673b8ae1d0b23c658
parentb5f6a56940e70838a07e885de03a92e2bd64674a
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.
gcc/internal-fn.cc