From 7d1959a1b874ad2cdd2940f461429f66ea16a86c Mon Sep 17 00:00:00 2001 From: Ross McIlroy Date: Fri, 23 Apr 2021 10:15:31 +0100 Subject: [PATCH] [Turboprop] Avoid some repeated reducers in Inlining/TypedLowering phases. BUG=v8:9684 Change-Id: Ia63928e67dd714690b4f54c14361c6ee5e81f604 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2843809 Commit-Queue: Ross McIlroy Reviewed-by: Georg Neis Cr-Commit-Position: refs/heads/master@{#74139} --- src/compiler/pipeline.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc index f36ba3044d..9415f67192 100644 --- a/src/compiler/pipeline.cc +++ b/src/compiler/pipeline.cc @@ -1415,8 +1415,10 @@ struct InliningPhase { JSIntrinsicLowering intrinsic_lowering(&graph_reducer, data->jsgraph(), data->broker()); AddReducer(data, &graph_reducer, &dead_code_elimination); - AddReducer(data, &graph_reducer, &checkpoint_elimination); - AddReducer(data, &graph_reducer, &common_reducer); + if (!data->info()->IsTurboprop()) { + AddReducer(data, &graph_reducer, &checkpoint_elimination); + AddReducer(data, &graph_reducer, &common_reducer); + } AddReducer(data, &graph_reducer, &native_context_specialization); AddReducer(data, &graph_reducer, &context_specialization); AddReducer(data, &graph_reducer, &intrinsic_lowering); @@ -1597,7 +1599,9 @@ struct TypedLoweringPhase { AddReducer(data, &graph_reducer, &dead_code_elimination); AddReducer(data, &graph_reducer, &create_lowering); - AddReducer(data, &graph_reducer, &constant_folding_reducer); + if (!data->info()->IsTurboprop()) { + AddReducer(data, &graph_reducer, &constant_folding_reducer); + } AddReducer(data, &graph_reducer, &typed_lowering); AddReducer(data, &graph_reducer, &typed_optimization); AddReducer(data, &graph_reducer, &simple_reducer);