From 7a01dc2107d4255b445c32867d15d45fcebb3acd Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 2 Jan 2015 17:00:44 +0000 Subject: Dead code elimination based on GVN results. Change-Id: I5b77411a8f088f0b561da14b123cf6b0501c9db5 --- compiler/utils/dex_instruction_utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/utils/dex_instruction_utils.h') diff --git a/compiler/utils/dex_instruction_utils.h b/compiler/utils/dex_instruction_utils.h index 2c6e525e1d..bb2c592f13 100644 --- a/compiler/utils/dex_instruction_utils.h +++ b/compiler/utils/dex_instruction_utils.h @@ -110,6 +110,10 @@ constexpr bool IsInstructionAGetOrAPut(Instruction::Code code) { return Instruction::AGET <= code && code <= Instruction::APUT_SHORT; } +constexpr bool IsInstructionBinOp2Addr(Instruction::Code code) { + return Instruction::ADD_INT_2ADDR <= code && code <= Instruction::REM_DOUBLE_2ADDR; +} + // TODO: Remove the #if guards below when we fully migrate to C++14. constexpr bool IsInvokeInstructionRange(Instruction::Code opcode) { -- cgit v1.2.3-59-g8ed1b