Improve alias analysis for pointer sized variables (mono/mono#16812)
authorFilip Navara <navara@emclient.com>
Fri, 13 Sep 2019 13:02:50 +0000 (15:02 +0200)
committerLarry Ewing <lewing@microsoft.com>
Fri, 13 Sep 2019 13:02:50 +0000 (08:02 -0500)
Commit migrated from https://github.com/mono/mono/commit/10e72a7ab6237f74d0f4eabbdf6fecda66085e55

src/mono/mono/mini/alias-analysis.c

index 4f096ed..b473fe2 100644 (file)
@@ -22,7 +22,7 @@ static gboolean
 is_int_stack_size (int type)
 {
 #if TARGET_SIZEOF_VOID_P == 4
-       return type == STACK_I4 || type == STACK_MP;
+       return type == STACK_I4 || type == STACK_MP || type == STACK_PTR;
 #else
        return type == STACK_I4;
 #endif
@@ -32,7 +32,7 @@ static gboolean
 is_long_stack_size (int type)
 {
 #if TARGET_SIZEOF_VOID_P == 8
-       return type == STACK_I8 || type == STACK_MP;
+       return type == STACK_I8 || type == STACK_MP || type == STACK_PTR;
 #else
        return type == STACK_I8;
 #endif