diff options
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index c4106b72b5..04b56345c4 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -96,6 +96,11 @@ inline std::string Patch(const std::string& original, const diff_t& diff) { 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_ |