tree-ssa-structalias.c (find_func_aliases): Properly handle asm inputs.

2017-04-10  Richard Biener  <rguenther@suse.de>

	* tree-ssa-structalias.c (find_func_aliases): Properly handle
	asm inputs.

From-SVN: r246809
This commit is contained in:
Richard Biener 2017-04-10 15:34:19 +00:00 committed by Richard Biener
parent 9b195552ab
commit 78a9876f98
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-04-10 Richard Biener <rguenther@suse.de>
* tree-ssa-structalias.c (find_func_aliases): Properly handle
asm inputs.
2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/70478

View File

@ -4944,14 +4944,14 @@ find_func_aliases (struct function *fn, gimple *origt)
make_escape_constraint (build_fold_addr_expr (op));
/* The asm may read global memory, so outputs may point to
any global memory. */
any global or escaped memory. */
if (op)
{
auto_vec<ce_s, 2> lhsc;
struct constraint_expr rhsc, *lhsp;
unsigned j;
get_constraint_for (op, &lhsc);
rhsc.var = nonlocal_id;
rhsc.var = escaped_id;
rhsc.offset = 0;
rhsc.type = SCALAR;
FOR_EACH_VEC_ELT (lhsc, j, lhsp)