Commit 20ebcaf
committed
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 4d3a561)1 parent c479531 commit 20ebcaf
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
2771 | 2773 | | |
2772 | 2774 | | |
2773 | 2775 | | |
2774 | | - | |
2775 | | - | |
| 2776 | + | |
| 2777 | + | |
2776 | 2778 | | |
2777 | 2779 | | |
2778 | 2780 | | |
| |||
0 commit comments