mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Add -solver-disable-splitter flag for debugging
We're not planning on removing the splitter because it is a big win in some cases, but we want to run it less often since it can also be a source of overhead. This flag allows us to compare performance to understand the tradeoffs better.
This commit is contained in:
@@ -1775,8 +1775,6 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
|
||||
Opts.SolverScopeThreshold);
|
||||
setUnsignedIntegerArgument(OPT_solver_trail_threshold_EQ,
|
||||
Opts.SolverTrailThreshold);
|
||||
setUnsignedIntegerArgument(OPT_solver_shrink_unsolved_threshold,
|
||||
Opts.SolverShrinkUnsolvedThreshold);
|
||||
|
||||
Opts.DebugTimeFunctionBodies |= Args.hasArg(OPT_debug_time_function_bodies);
|
||||
Opts.DebugTimeExpressions |=
|
||||
@@ -1865,8 +1863,8 @@ static bool ParseTypeCheckerArgs(TypeCheckerOptions &Opts, ArgList &Args,
|
||||
Opts.DebugForbidTypecheckPrefixes.push_back(A);
|
||||
}
|
||||
|
||||
if (Args.getLastArg(OPT_solver_disable_shrink))
|
||||
Opts.SolverDisableShrink = true;
|
||||
if (Args.getLastArg(OPT_solver_disable_splitter))
|
||||
Opts.SolverDisableSplitter = true;
|
||||
|
||||
if (FrontendOpts.RequestedAction == FrontendOptions::ActionType::Immediate)
|
||||
Opts.DeferToRuntime = true;
|
||||
|
||||
Reference in New Issue
Block a user