Commit 1601e35a authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Regalloc: only pre-spill live ranges with spill operand.

Review-Url: https://codereview.chromium.org/2360523002
Cr-Commit-Position: refs/heads/master@{#39591}
parent 12d4dc32
...@@ -2392,9 +2392,7 @@ void RegisterAllocator::SplitAndSpillRangesDefinedByMemoryOperand( ...@@ -2392,9 +2392,7 @@ void RegisterAllocator::SplitAndSpillRangesDefinedByMemoryOperand(
for (size_t i = 0; i < initial_range_count; ++i) { for (size_t i = 0; i < initial_range_count; ++i) {
TopLevelLiveRange* range = data()->live_ranges()[i]; TopLevelLiveRange* range = data()->live_ranges()[i];
if (!CanProcessRange(range)) continue; if (!CanProcessRange(range)) continue;
if (range->HasNoSpillType() || (operands_only && range->HasSpillRange())) { if (!range->HasSpillOperand()) continue;
continue;
}
LifetimePosition start = range->Start(); LifetimePosition start = range->Start();
TRACE("Live range %d:%d is defined by a spill operand.\n", TRACE("Live range %d:%d is defined by a spill operand.\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment