Commit b5d22ec7 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Turn these optimizations back on

parent 1cfb7acf
...@@ -163,7 +163,6 @@ bool Rewriter::ConstLoader::tryRegRegMove(uint64_t val, assembler::Register dst_ ...@@ -163,7 +163,6 @@ bool Rewriter::ConstLoader::tryRegRegMove(uint64_t val, assembler::Register dst_
bool Rewriter::ConstLoader::tryLea(uint64_t val, assembler::Register dst_reg) { bool Rewriter::ConstLoader::tryLea(uint64_t val, assembler::Register dst_reg) {
assert(rewriter->phase_emitting); assert(rewriter->phase_emitting);
return false;
// for large constants it maybe beneficial to create the value with a LEA from a known const value // for large constants it maybe beneficial to create the value with a LEA from a known const value
if (isLargeConstant(val)) { if (isLargeConstant(val)) {
......
...@@ -679,9 +679,8 @@ Value ASTInterpreter::visit_jump(AST_Jump* node) { ...@@ -679,9 +679,8 @@ Value ASTInterpreter::visit_jump(AST_Jump* node) {
// we may have started JITing because the OSR thresholds got triggered in this case we don't want to jit // we may have started JITing because the OSR thresholds got triggered in this case we don't want to jit
// additional blocks ouside of the loop if the function is cold. // additional blocks ouside of the loop if the function is cold.
// XXX reenable this if (getMD()->times_interpreted < REOPT_THRESHOLD_INTERPRETER)
// if (getMD()->times_interpreted < REOPT_THRESHOLD_INTERPRETER) should_jit = false;
// should_jit = false;
} }
if (backedge) if (backedge)
......
...@@ -179,8 +179,7 @@ RewriterVar* JitFragmentWriter::emitAugbinop(AST_expr* node, RewriterVar* lhs, R ...@@ -179,8 +179,7 @@ RewriterVar* JitFragmentWriter::emitAugbinop(AST_expr* node, RewriterVar* lhs, R
} }
RewriterVar* JitFragmentWriter::emitBinop(AST_expr* node, RewriterVar* lhs, RewriterVar* rhs, int op_type) { RewriterVar* JitFragmentWriter::emitBinop(AST_expr* node, RewriterVar* lhs, RewriterVar* rhs, int op_type) {
/// XXX increase this too much for testing return emitPPCall((void*)binop, { lhs, rhs, imm(op_type) }, 2, 240, node).first->setType(RefType::OWNED);
return emitPPCall((void*)binop, { lhs, rhs, imm(op_type) }, 2, 640, node).first->setType(RefType::OWNED);
} }
RewriterVar* JitFragmentWriter::emitCallattr(AST_expr* node, RewriterVar* obj, BoxedString* attr, CallattrFlags flags, RewriterVar* JitFragmentWriter::emitCallattr(AST_expr* node, RewriterVar* obj, BoxedString* attr, CallattrFlags flags,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment