From 5320dd74f75ffc1e426d3adfd506abbe972725fb Mon Sep 17 00:00:00 2001 From: "Bowen S. Zhu" Date: Sun, 5 May 2024 21:13:40 -0400 Subject: [PATCH] Replace `get!` with `get` to avoid unnecessary state initialization --- src/code.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code.jl b/src/code.jl index c262fc8ed..208fc91ea 100644 --- a/src/code.jl +++ b/src/code.jl @@ -743,7 +743,7 @@ end function cse_state!(state, t) !iscall(t) && return t - state[t] = Base.get!(state, t, 0) + 1 + state[t] = Base.get(state, t, 0) + 1 foreach(x->cse_state!(state, x), unsorted_arguments(t)) end