Skip to content

Commit

Permalink
fix perf regression in codegen that affected sparse multiply (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 18, 2013
1 parent c0f904b commit fbf3ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,8 @@ static void emit_assignment(jl_value_t *l, jl_value_t *r, jl_codectx_t *ctx)
}
}

if (vi.isSA && bp == NULL) {
if (vi.isSA && !vi.isCaptured && !vi.isArgument && !vi.usedUndef &&
!vi.isVolatile && rval->getType() == jl_pvalue_llvmt) {
// use SSA value instead of GC frame load for var access
vi.SAvalue = rval;
}
Expand Down

0 comments on commit fbf3ed8

Please sign in to comment.