Commit ad3cac72 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Run JSIntrinsicLowering together with inlining.

R=mvstanton@chromium.org

Review-Url: https://codereview.chromium.org/2195623002
Cr-Commit-Position: refs/heads/master@{#38160}
parent de244af9
...@@ -810,6 +810,11 @@ struct InliningPhase { ...@@ -810,6 +810,11 @@ struct InliningPhase {
? JSInliningHeuristic::kGeneralInlining ? JSInliningHeuristic::kGeneralInlining
: JSInliningHeuristic::kRestrictedInlining, : JSInliningHeuristic::kRestrictedInlining,
temp_zone, data->info(), data->jsgraph()); temp_zone, data->info(), data->jsgraph());
JSIntrinsicLowering intrinsic_lowering(
&graph_reducer, data->jsgraph(),
data->info()->is_deoptimization_enabled()
? JSIntrinsicLowering::kDeoptimizationEnabled
: JSIntrinsicLowering::kDeoptimizationDisabled);
AddReducer(data, &graph_reducer, &dead_code_elimination); AddReducer(data, &graph_reducer, &dead_code_elimination);
AddReducer(data, &graph_reducer, &common_reducer); AddReducer(data, &graph_reducer, &common_reducer);
if (data->info()->is_frame_specializing()) { if (data->info()->is_frame_specializing()) {
...@@ -820,6 +825,7 @@ struct InliningPhase { ...@@ -820,6 +825,7 @@ struct InliningPhase {
} }
AddReducer(data, &graph_reducer, &native_context_specialization); AddReducer(data, &graph_reducer, &native_context_specialization);
AddReducer(data, &graph_reducer, &context_specialization); AddReducer(data, &graph_reducer, &context_specialization);
AddReducer(data, &graph_reducer, &intrinsic_lowering);
AddReducer(data, &graph_reducer, &call_reducer); AddReducer(data, &graph_reducer, &call_reducer);
if (!data->info()->is_optimizing_from_bytecode()) { if (!data->info()->is_optimizing_from_bytecode()) {
AddReducer(data, &graph_reducer, &inlining); AddReducer(data, &graph_reducer, &inlining);
...@@ -903,11 +909,6 @@ struct TypedLoweringPhase { ...@@ -903,11 +909,6 @@ struct TypedLoweringPhase {
JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(),
typed_lowering_flags, data->jsgraph(), typed_lowering_flags, data->jsgraph(),
temp_zone); temp_zone);
JSIntrinsicLowering intrinsic_lowering(
&graph_reducer, data->jsgraph(),
data->info()->is_deoptimization_enabled()
? JSIntrinsicLowering::kDeoptimizationEnabled
: JSIntrinsicLowering::kDeoptimizationDisabled);
SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph()); SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph());
CheckpointElimination checkpoint_elimination(&graph_reducer); CheckpointElimination checkpoint_elimination(&graph_reducer);
CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
...@@ -918,7 +919,6 @@ struct TypedLoweringPhase { ...@@ -918,7 +919,6 @@ struct TypedLoweringPhase {
AddReducer(data, &graph_reducer, &create_lowering); AddReducer(data, &graph_reducer, &create_lowering);
} }
AddReducer(data, &graph_reducer, &typed_lowering); AddReducer(data, &graph_reducer, &typed_lowering);
AddReducer(data, &graph_reducer, &intrinsic_lowering);
AddReducer(data, &graph_reducer, &simple_reducer); AddReducer(data, &graph_reducer, &simple_reducer);
AddReducer(data, &graph_reducer, &checkpoint_elimination); AddReducer(data, &graph_reducer, &checkpoint_elimination);
AddReducer(data, &graph_reducer, &common_reducer); AddReducer(data, &graph_reducer, &common_reducer);
......
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