From 6f61ee5623a676ce983ccfa1aba9b2ae1237e163 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 12 Aug 2016 06:33:15 +0000 Subject: Revert "Iterative move coalescing for gc regalloc" There are lifetime issues with allocators and coloring iterations that got flagged by valgrind. This reverts commit 465ed699e810868fe5bb39730e6d149a4734372d. Change-Id: I9e08172321af61d109c116a4f0742fa809e8094b Test: m test-art-host --- compiler/optimizing/ssa_liveness_analysis.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/optimizing/ssa_liveness_analysis.h') diff --git a/compiler/optimizing/ssa_liveness_analysis.h b/compiler/optimizing/ssa_liveness_analysis.h index 92788fe6b8..346753b775 100644 --- a/compiler/optimizing/ssa_liveness_analysis.h +++ b/compiler/optimizing/ssa_liveness_analysis.h @@ -514,9 +514,7 @@ class LiveInterval : public ArenaObject { // Whether the interval requires a register rather than a stack location. // If needed for performance, this could be cached. - bool RequiresRegister() const { - return !HasRegister() && FirstRegisterUse() != kNoLifetime; - } + bool RequiresRegister() const { return FirstRegisterUse() != kNoLifetime; } size_t FirstUseAfter(size_t position) const { if (is_temp_) { -- cgit v1.2.3-59-g8ed1b