diff options
author | Vladimir Marko <vmarko@google.com> | 2015-01-02 17:00:44 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2015-02-17 21:06:27 +0000 |
commit | 7a01dc2107d4255b445c32867d15d45fcebb3acd (patch) | |
tree | 5f25d4a2889e6fbcb5119484f2b0b6a4253f9b00 /compiler/utils/dex_instruction_utils.h | |
parent | bce889940f10319bf67bdc5630c84dd7f6e5c246 (diff) | |
download | android_art-7a01dc2107d4255b445c32867d15d45fcebb3acd.tar.gz android_art-7a01dc2107d4255b445c32867d15d45fcebb3acd.tar.bz2 android_art-7a01dc2107d4255b445c32867d15d45fcebb3acd.zip |
Dead code elimination based on GVN results.
Change-Id: I5b77411a8f088f0b561da14b123cf6b0501c9db5
Diffstat (limited to 'compiler/utils/dex_instruction_utils.h')
-rw-r--r-- | compiler/utils/dex_instruction_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |