Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
10277:aabf54ccedb1 | 10278:6f3fd5150b67 |
---|---|
671 // / \ | | 671 // / \ | |
672 // / \ | | 672 // / \ | |
673 // / Region | 673 // / Region |
674 // | 674 // |
675 Node* IfNode::fold_compares(PhaseGVN* phase) { | 675 Node* IfNode::fold_compares(PhaseGVN* phase) { |
676 if (!EliminateAutoBox || Opcode() != Op_If) return NULL; | 676 if (!phase->C->eliminate_boxing() || Opcode() != Op_If) return NULL; |
677 | 677 |
678 Node* this_cmp = in(1)->in(1); | 678 Node* this_cmp = in(1)->in(1); |
679 if (this_cmp != NULL && this_cmp->Opcode() == Op_CmpI && | 679 if (this_cmp != NULL && this_cmp->Opcode() == Op_CmpI && |
680 this_cmp->in(2)->is_Con() && this_cmp->in(2) != phase->C->top()) { | 680 this_cmp->in(2)->is_Con() && this_cmp->in(2) != phase->C->top()) { |
681 Node* ctrl = in(0); | 681 Node* ctrl = in(0); |