From 743b98cd3d7db1cfd6b3d7f7795e8abd9d07a42d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 24 Nov 2014 19:45:41 +0000 Subject: Skip null check in MarkGCCard() for known non-null values. Use GVN's knowledge of non-null values to set a new MIR flag for IPUT/SPUT/APUT to skip the value null check. Change-Id: I97a8d1447acb530c9bbbf7b362add366d1486ee1 --- compiler/dex/compiler_enums.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/dex/compiler_enums.h') diff --git a/compiler/dex/compiler_enums.h b/compiler/dex/compiler_enums.h index b56fd6f5c7..4d377df09a 100644 --- a/compiler/dex/compiler_enums.h +++ b/compiler/dex/compiler_enums.h @@ -316,9 +316,8 @@ enum ExtendedMIROpcode { enum MIROptimizationFlagPositions { kMIRIgnoreNullCheck = 0, - kMIRNullCheckOnly, kMIRIgnoreRangeCheck, - kMIRRangeCheckOnly, + kMIRStoreNonNullValue, // Storing non-null value, always mark GC card. kMIRClassIsInitialized, kMIRClassIsInDexCache, kMirIgnoreDivZeroCheck, -- cgit v1.2.3