Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 1cbd1594195c198882cd305a0e58e02729b43479..bd03020965aafd5f6d0c4c96e66c4ef0610a0672 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -1354,9 +1354,13 @@ void Pipeline::AllocateRegisters(const RegisterConfiguration* config, |
Run<SplinterLiveRangesPhase>(); |
} |
- // TODO(mtrofin): re-enable greedy once we have bots for range preprocessing. |
- Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); |
- Run<AllocateDoubleRegistersPhase<LinearScanAllocator>>(); |
+ if (FLAG_turbo_greedy_regalloc) { |
+ Run<AllocateGeneralRegistersPhase<GreedyAllocator>>(); |
+ Run<AllocateDoubleRegistersPhase<GreedyAllocator>>(); |
+ } else { |
+ Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); |
+ Run<AllocateDoubleRegistersPhase<LinearScanAllocator>>(); |
+ } |
if (FLAG_turbo_preprocess_ranges) { |
Run<MergeSplintersPhase>(); |