We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0984624 commit 96a61a0Copy full SHA for 96a61a0
src/interpreter.jl
@@ -124,7 +124,11 @@ end
124
125
function create_cthulhu_source(@nospecialize(opt), effects::Effects)
126
isa(opt, OptimizationState) || return opt
127
- @static if VERSION ≥ v"1.11-"
+ @static if VERSION ≥ v"1.13-"
128
+ result = opt.result::CC.OptimizationResult
129
+ result.simplified || CC.simplify_ir!(result)
130
+ ir = CC.compact!(copy(result.ir))
131
+ elseif VERSION ≥ v"1.11-"
132
# get the (theoretically) same effect as the jl_compress_ir -> jl_uncompress_ir -> inflate_ir round-trip
133
ir = CC.compact!(CC.cfg_simplify!(CC.copy(opt.ir::IRCode)))
134
else
0 commit comments