commit | f384f88d4d1e89df82f47fbc7245a8acc9c2d49c | [log] [tgz] |
---|---|---|
author | Mingyao Yang <mingyao@google.com> | Wed Oct 22 16:08:18 2014 -0700 |
committer | Mingyao Yang <mingyao@google.com> | Wed Dec 03 15:39:21 2014 -0800 |
tree | 11c1b7094ca95fda08feba3ee9f8622b096e327d | |
parent | 8b9a97e8b6ed97ff1991596cbd0f7ce78f004766 [diff] [blame] |
Bounds check elimination. Change-Id: Ia0d6a4226c1f9f1ff1dd35347a38db1dc4265319
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index c4106b7..04b5634 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h
@@ -96,6 +96,11 @@ return result; } +// Returns if the instruction is removed from the graph. +inline bool IsRemoved(HInstruction* instruction) { + return instruction->GetBlock() == nullptr; +} + } // namespace art #endif // ART_COMPILER_OPTIMIZING_OPTIMIZING_UNIT_TEST_H_