variants are pointer equivalent.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271747
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* config/aarch64/aarch64-c.c: Added TARGET_SVE2.
type1 = TYPE_MAIN_VARIANT (type1);
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 (TYPE_STRUCTURAL_EQUALITY_P (type1)
|| TYPE_STRUCTURAL_EQUALITY_P (type2))