From: Filip Navara Date: Fri, 13 Sep 2019 13:02:50 +0000 (+0200) Subject: Improve alias analysis for pointer sized variables (mono/mono#16812) X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=885b1f259bdd977e8ee12768b4f45000d4af50e1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Improve alias analysis for pointer sized variables (mono/mono#16812) Commit migrated from https://github.com/mono/mono/commit/10e72a7ab6237f74d0f4eabbdf6fecda66085e55 --- diff --git a/src/mono/mono/mini/alias-analysis.c b/src/mono/mono/mini/alias-analysis.c index 4f096ed..b473fe2 100644 --- a/src/mono/mono/mini/alias-analysis.c +++ b/src/mono/mono/mini/alias-analysis.c @@ -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