Commit 01a58e36 by Jan Hubicka Committed by Jan Hubicka

tree-ssa-alias.c (same_type_for_tbaa): Return ture if main variants are pointer equivalent.

	* tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
	variants are pointer equivalent.

From-SVN: r271747
parent 824e57cb
2019-05-29 Jan Hubicka <jh@suse.cz>
* tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
variants are pointer equivalent.
2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com> 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
* config/aarch64/aarch64-c.c: Added TARGET_SVE2. * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
......
...@@ -787,6 +787,10 @@ same_type_for_tbaa (tree type1, tree type2) ...@@ -787,6 +787,10 @@ same_type_for_tbaa (tree type1, tree type2)
type1 = TYPE_MAIN_VARIANT (type1); type1 = TYPE_MAIN_VARIANT (type1);
type2 = TYPE_MAIN_VARIANT (type2); type2 = TYPE_MAIN_VARIANT (type2);
/* Handle the most common case first. */
if (type1 == type2)
return 1;
/* If we would have to do structural comparison bail out. */ /* If we would have to do structural comparison bail out. */
if (TYPE_STRUCTURAL_EQUALITY_P (type1) if (TYPE_STRUCTURAL_EQUALITY_P (type1)
|| TYPE_STRUCTURAL_EQUALITY_P (type2)) || TYPE_STRUCTURAL_EQUALITY_P (type2))
......
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