diff options
| author | 2016-08-12 22:07:41 +0000 | |
|---|---|---|
| committer | 2016-08-12 22:07:41 +0000 | |
| commit | 912cc4aad303d4de0cae8d26d8094a916d93752b (patch) | |
| tree | 890fb8ef5d30a9fd5c00af7f96f6e38adc1b6487 /compiler/optimizing/ssa_liveness_analysis.h | |
| parent | ef1a3209ab59008d402045a17379fb1f13a21e7b (diff) | |
| parent | 2ccae4a5fe6efbebd22cc2ad3a845829b695f670 (diff) | |
Merge "Revert "Revert "Iterative move coalescing for gc regalloc"""
Diffstat (limited to 'compiler/optimizing/ssa_liveness_analysis.h')
| -rw-r--r-- | compiler/optimizing/ssa_liveness_analysis.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/ssa_liveness_analysis.h b/compiler/optimizing/ssa_liveness_analysis.h index 346753b775..92788fe6b8 100644 --- a/compiler/optimizing/ssa_liveness_analysis.h +++ b/compiler/optimizing/ssa_liveness_analysis.h @@ -514,7 +514,9 @@ class LiveInterval : public ArenaObject<kArenaAllocSsaLiveness> { // Whether the interval requires a register rather than a stack location. // If needed for performance, this could be cached. - bool RequiresRegister() const { return FirstRegisterUse() != kNoLifetime; } + bool RequiresRegister() const { + return !HasRegister() && FirstRegisterUse() != kNoLifetime; + } size_t FirstUseAfter(size_t position) const { if (is_temp_) { |