Skip to content

Commit

Permalink
do a better job of avoiding unnecessary GC roots in codegen
Browse files Browse the repository at this point in the history
this removes stores and loads, and if we can reduce the number of roots
in a function to zero we save significant overhead.
ref #3440
  • Loading branch information
JeffBezanson committed Jul 7, 2013
1 parent b02ea62 commit ec3311a
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 108 deletions.
3 changes: 2 additions & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ static Value *julia_bool(Value *cond)

// --- get the inferred type of an AST node ---

static jl_value_t *static_eval(jl_value_t *ex, jl_codectx_t *ctx, bool sparams=true);
static jl_value_t *static_eval(jl_value_t *ex, jl_codectx_t *ctx, bool sparams=true,
bool allow_alloc=true);

static inline jl_module_t *topmod(jl_codectx_t *ctx)
{
Expand Down
Loading

0 comments on commit ec3311a

Please sign in to comment.