mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75382 from kavon/static-branch-prediction
Throws Prediction + HotColdSplitting
This commit is contained in:
@@ -2661,6 +2661,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
OPT_enable_sil_opaque_values, OPT_disable_sil_opaque_values, false);
|
||||
Opts.EnableSpeculativeDevirtualization |= Args.hasArg(OPT_enable_spec_devirt);
|
||||
Opts.EnableAsyncDemotion |= Args.hasArg(OPT_enable_async_demotion);
|
||||
Opts.EnableThrowsPrediction = Args.hasFlag(
|
||||
OPT_enable_throws_prediction, OPT_disable_throws_prediction,
|
||||
Opts.EnableThrowsPrediction);
|
||||
Opts.EnableActorDataRaceChecks |= Args.hasFlag(
|
||||
OPT_enable_actor_data_race_checks,
|
||||
OPT_disable_actor_data_race_checks, /*default=*/false);
|
||||
@@ -3423,6 +3426,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Args.hasFlag(OPT_enable_fragile_resilient_protocol_witnesses,
|
||||
OPT_disable_fragile_resilient_protocol_witnesses,
|
||||
Opts.UseFragileResilientProtocolWitnesses);
|
||||
Opts.EnableHotColdSplit =
|
||||
Args.hasFlag(OPT_enable_split_cold_code,
|
||||
OPT_disable_split_cold_code,
|
||||
Opts.EnableHotColdSplit);
|
||||
Opts.EnableLargeLoadableTypesReg2Mem =
|
||||
Args.hasFlag(OPT_enable_large_loadable_types_reg2mem,
|
||||
OPT_disable_large_loadable_types_reg2mem,
|
||||
|
||||
Reference in New Issue
Block a user