diff options
author | Vladimir Marko <vmarko@google.com> | 2015-02-17 22:25:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-17 22:25:06 +0000 |
commit | afba696823ec7c019de72f17cd198e91edd3bf4f (patch) | |
tree | 4f9ccb44e2d7ae83e685ea139e1c5124b2280622 /compiler/utils/dex_instruction_utils.h | |
parent | 17609db47537ea6da03db1be530ad13e67cf24db (diff) | |
parent | 7a01dc2107d4255b445c32867d15d45fcebb3acd (diff) | |
download | art-afba696823ec7c019de72f17cd198e91edd3bf4f.tar.gz art-afba696823ec7c019de72f17cd198e91edd3bf4f.tar.bz2 art-afba696823ec7c019de72f17cd198e91edd3bf4f.zip |
Merge "Dead code elimination based on GVN results."
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) { |