Mercurial > hg > truffle
diff src/share/vm/opto/ifnode.cpp @ 10278:6f3fd5150b67
6934604: enable parts of EliminateAutoBox by default
Summary: Resurrected autobox elimination code and enabled part of it by default.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Wed, 08 May 2013 15:08:01 -0700 |
parents | b9a9ed0f8eeb |
children | c9ccd7b85f20 |
line wrap: on
line diff
--- a/src/share/vm/opto/ifnode.cpp Mon May 06 19:49:23 2013 -0700 +++ b/src/share/vm/opto/ifnode.cpp Wed May 08 15:08:01 2013 -0700 @@ -673,7 +673,7 @@ // / Region // Node* IfNode::fold_compares(PhaseGVN* phase) { - if (!EliminateAutoBox || Opcode() != Op_If) return NULL; + if (!phase->C->eliminate_boxing() || Opcode() != Op_If) return NULL; Node* this_cmp = in(1)->in(1); if (this_cmp != NULL && this_cmp->Opcode() == Op_CmpI &&