Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant prerequisite steps from the default optimizer sequence #15092

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions libsolidity/interface/OptimiserSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum class OptimisationPreset
struct OptimiserSettings
{
static char constexpr DefaultYulOptimiserSteps[] =
"dhfoDgvulfnTUtnIf" // None of these can make stack problems worse
"dfDvulfnTUtnIf" // None of these can make stack problems worse

"xa[r]EscLM" // Turn into SSA and simplify
"Vcul [j]" // Reverse SSA
Expand All @@ -51,13 +51,13 @@ struct OptimiserSettings

"Trpeul" // Run functional expression inliner
"xa[r]cL" // Turn into SSA again and simplify
"gvifM" // Run full inliner
"vifM" // Run full inliner
"CTUca[r]LSsTFOtfDnca[r]Iulc" // SSA plus simplify

"scCTUt"
"gvifM" // Run full inliner
"vifM" // Run full inliner
"x[scCTUt] TOntnfDIul" // Perform structural simplification
"gvifM" // Run full inliner
"vifM" // Run full inliner

"jmul[jul] VcTOcul jmul"; // Make source short and pretty

Expand Down