diff options
author | David Srbecky <dsrbecky@google.com> | 2020-04-28 21:36:49 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2020-05-07 14:45:38 +0100 |
commit | 8103e479d8f8447584582b2b70752029f7087776 (patch) | |
tree | 53b2be70d195b785fc1d79b6151e42925b4981fe /compiler/optimizing/optimizing_unit_test.h | |
parent | 6a8f8c52da06de506b75fa524a56a30794849261 (diff) |
Remove test_per_src from ART tests.
Remove test_per_src since it is not supported by atest.
Replace it with gtest_isolate which is transparent to atest,
and which still allows us to run tests in parallel.
The size of test binaries halves (from 1GB to 0.5GB).
Test run-time on host is unchanged.
Test run-time on target is 4x faster (tested on walleye).
Bug: 147819342
Test: m test-art-host-gtest
Test: art/tools/run-gtests.sh
Change-Id: Id295af00d08b24baa2e421b0f3313df0b2e56fe9
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index eb262bc123..670f91c8c9 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -56,11 +56,11 @@ namespace art { #define FIVE_REGISTERS_CODE_ITEM(...) N_REGISTERS_CODE_ITEM(5, __VA_ARGS__) #define SIX_REGISTERS_CODE_ITEM(...) N_REGISTERS_CODE_ITEM(6, __VA_ARGS__) -LiveInterval* BuildInterval(const size_t ranges[][2], - size_t number_of_ranges, - ScopedArenaAllocator* allocator, - int reg = -1, - HInstruction* defined_by = nullptr) { +inline LiveInterval* BuildInterval(const size_t ranges[][2], + size_t number_of_ranges, + ScopedArenaAllocator* allocator, + int reg = -1, + HInstruction* defined_by = nullptr) { LiveInterval* interval = LiveInterval::MakeInterval(allocator, DataType::Type::kInt32, defined_by); if (defined_by != nullptr) { @@ -73,7 +73,7 @@ LiveInterval* BuildInterval(const size_t ranges[][2], return interval; } -void RemoveSuspendChecks(HGraph* graph) { +inline void RemoveSuspendChecks(HGraph* graph) { for (HBasicBlock* block : graph->GetBlocks()) { if (block != nullptr) { if (block->GetLoopInformation() != nullptr) { |