Commit e67ddda6 by Jan Hubicka Committed by Jan Hubicka

tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate access path on BIT_FIELD_REFs.

	* tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
	access path on BIT_FIELD_REFs.

From-SVN: r272380
parent c98d845f
2019-06-17 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
access path on BIT_FIELD_REFs.
2019-06-17 Martin Liska <mliska@suse.cz> 2019-06-17 Martin Liska <mliska@suse.cz>
PR ipa/90874 PR ipa/90874
......
...@@ -1268,7 +1268,8 @@ nonoverlapping_component_refs_p (const_tree x, const_tree y) ...@@ -1268,7 +1268,8 @@ nonoverlapping_component_refs_p (const_tree x, const_tree y)
if (TREE_CODE (type) == RECORD_TYPE) if (TREE_CODE (type) == RECORD_TYPE)
fieldsx.safe_push (field); fieldsx.safe_push (field);
} }
else if (TREE_CODE (x) == VIEW_CONVERT_EXPR) else if (TREE_CODE (x) == VIEW_CONVERT_EXPR
|| TREE_CODE (x) == BIT_FIELD_REF)
fieldsx.truncate (0); fieldsx.truncate (0);
x = TREE_OPERAND (x, 0); x = TREE_OPERAND (x, 0);
} }
...@@ -1284,7 +1285,8 @@ nonoverlapping_component_refs_p (const_tree x, const_tree y) ...@@ -1284,7 +1285,8 @@ nonoverlapping_component_refs_p (const_tree x, const_tree y)
if (TREE_CODE (type) == RECORD_TYPE) if (TREE_CODE (type) == RECORD_TYPE)
fieldsy.safe_push (TREE_OPERAND (y, 1)); fieldsy.safe_push (TREE_OPERAND (y, 1));
} }
else if (TREE_CODE (y) == VIEW_CONVERT_EXPR) else if (TREE_CODE (y) == VIEW_CONVERT_EXPR
|| TREE_CODE (y) == BIT_FIELD_REF)
fieldsy.truncate (0); fieldsy.truncate (0);
y = TREE_OPERAND (y, 0); y = TREE_OPERAND (y, 0);
} }
......
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