Commit 1dc5814c by Richard Biener Committed by Richard Biener

re PR inline-asm/79552 (Wrong code generation due to -fschedule-insns, with…

re PR inline-asm/79552 (Wrong code generation due to -fschedule-insns, with __restrict__ and inline asm)

2017-02-17  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/79552
	* tree-ssa-structalias.c (visit_loadstore): Properly verify
	default defs.

From-SVN: r245528
parent c265c2dd
2017-02-17 Richard Biener <rguenther@suse.de> 2017-02-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/79552
* tree-ssa-structalias.c (visit_loadstore): Properly verify
default defs.
2017-02-17 Richard Biener <rguenther@suse.de>
PR bootstrap/79567 PR bootstrap/79567
* genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2. * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
......
...@@ -7296,9 +7296,15 @@ visit_loadstore (gimple *, tree base, tree ref, void *data) ...@@ -7296,9 +7296,15 @@ visit_loadstore (gimple *, tree base, tree ref, void *data)
|| TREE_CODE (base) == TARGET_MEM_REF) || TREE_CODE (base) == TARGET_MEM_REF)
{ {
tree ptr = TREE_OPERAND (base, 0); tree ptr = TREE_OPERAND (base, 0);
if (TREE_CODE (ptr) == SSA_NAME if (TREE_CODE (ptr) == SSA_NAME)
&& ! SSA_NAME_IS_DEFAULT_DEF (ptr))
{ {
/* For parameters, get at the points-to set for the actual parm
decl. */
if (SSA_NAME_IS_DEFAULT_DEF (ptr)
&& (TREE_CODE (SSA_NAME_VAR (ptr)) == PARM_DECL
|| TREE_CODE (SSA_NAME_VAR (ptr)) == RESULT_DECL))
ptr = SSA_NAME_VAR (ptr);
/* We need to make sure 'ptr' doesn't include any of /* We need to make sure 'ptr' doesn't include any of
the restrict tags we added bases for in its points-to set. */ the restrict tags we added bases for in its points-to set. */
varinfo_t vi = lookup_vi_for_tree (ptr); varinfo_t vi = lookup_vi_for_tree (ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment