diff --git a/Project.toml b/Project.toml index 97d5dd23..7c93f159 100644 --- a/Project.toml +++ b/Project.toml @@ -20,7 +20,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" [compat] ExprTools = "0.1" InteractiveUtils = "1" -LLVM = "9.1" +LLVM = "9.3" Libdl = "1" Logging = "1" PrecompileTools = "1" diff --git a/src/optim.jl b/src/optim.jl index 7da120b8..841b1a5b 100644 --- a/src/optim.jl +++ b/src/optim.jl @@ -46,14 +46,14 @@ function buildNewPMPipeline!(mpm, @nospecialize(job::CompilerJob), opt_level) end const BasicSimplifyCFGOptions = - (; convert_switch_range_to_icmp=true, - convert_switch_to_lookup_table=true, - forward_switch_cond_to_phi=true, + (; switch_range_to_icmp=true, + switch_to_lookup=true, + forward_switch_cond=true, ) const AggressiveSimplifyCFGOptions = - (; convert_switch_range_to_icmp=true, - convert_switch_to_lookup_table=true, - forward_switch_cond_to_phi=true, + (; switch_range_to_icmp=true, + switch_to_lookup=true, + forward_switch_cond=true, # These mess with loop rotation, so only do them after that hoist_common_insts=true, # Causes an SRET assertion error in late-gc-lowering