Skip to content

Commit 96a61a0

Browse files
authored
Co-authored-by: Cédric Belmant <[email protected]>
1 parent 0984624 commit 96a61a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/interpreter.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ end
124124

125125
function create_cthulhu_source(@nospecialize(opt), effects::Effects)
126126
isa(opt, OptimizationState) || return opt
127-
@static if VERSION v"1.11-"
127+
@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-"
128132
# get the (theoretically) same effect as the jl_compress_ir -> jl_uncompress_ir -> inflate_ir round-trip
129133
ir = CC.compact!(CC.cfg_simplify!(CC.copy(opt.ir::IRCode)))
130134
else

0 commit comments

Comments
 (0)