Commit 9ebc1ed6 authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Run effect linearizer even for asm functions.

Review URL: https://codereview.chromium.org/1914943002

Cr-Commit-Position: refs/heads/master@{#35749}
parent 256eeed5
......@@ -159,9 +159,8 @@ class CompilationInfo {
kSplittingEnabled = 1 << 13,
kDeoptimizationEnabled = 1 << 14,
kSourcePositionsEnabled = 1 << 15,
kEffectSchedulingEnabled = 1 << 16,
kBailoutOnUninitialized = 1 << 17,
kOptimizeFromBytecode = 1 << 18,
kBailoutOnUninitialized = 1 << 16,
kOptimizeFromBytecode = 1 << 17,
};
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
......@@ -275,12 +274,6 @@ class CompilationInfo {
return GetFlag(kDeoptimizationEnabled);
}
void MarkAsEffectSchedulingEnabled() { SetFlag(kEffectSchedulingEnabled); }
bool is_effect_scheduling_enabled() const {
return GetFlag(kEffectSchedulingEnabled);
}
void MarkAsSourcePositionsEnabled() { SetFlag(kSourcePositionsEnabled); }
bool is_source_positions_enabled() const {
......
......@@ -502,10 +502,6 @@ PipelineCompilationJob::Status PipelineCompilationJob::CreateGraphImpl() {
if (!info()->shared_info()->asm_function() || FLAG_turbo_asm_deoptimization) {
info()->MarkAsDeoptimizationEnabled();
}
if (!info()->shared_info()->asm_function()) {
info()->MarkAsEffectSchedulingEnabled();
}
if (!info()->shared_info()->HasBytecodeArray()) {
if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED;
}
......@@ -1283,10 +1279,8 @@ Handle<Code> Pipeline::GenerateCode() {
Run<EarlyOptimizationPhase>();
RunPrintAndVerify("Early optimized");
if (info()->is_effect_scheduling_enabled()) {
Run<EffectControlLinearizationPhase>();
RunPrintAndVerify("Effect and control linearized");
}
Run<EffectControlLinearizationPhase>();
RunPrintAndVerify("Effect and control linearized");
Run<BranchEliminationPhase>();
RunPrintAndVerify("Branch conditions eliminated");
......
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