Mercurial > hg > truffle
diff src/share/vm/opto/matcher.cpp @ 851:fc4be448891f
6851742: (EA) allocation elimination doesn't work with UseG1GC
Summary: Fix eliminate_card_mark() to eliminate G1 pre/post barriers.
Reviewed-by: never
author | kvn |
---|---|
date | Thu, 16 Jul 2009 14:10:42 -0700 |
parents | 14367225a853 |
children | 62001a362ce9 |
line wrap: on
line diff
--- a/src/share/vm/opto/matcher.cpp Wed Jul 15 13:37:35 2009 -0700 +++ b/src/share/vm/opto/matcher.cpp Thu Jul 16 14:10:42 2009 -0700 @@ -1489,8 +1489,7 @@ #ifdef ASSERT // Verify adr type after matching memory operation const MachOper* oper = mach->memory_operand(); - if (oper != NULL && oper != (MachOper*)-1 && - mach->adr_type() != TypeRawPtr::BOTTOM) { // non-direct addressing mode + if (oper != NULL && oper != (MachOper*)-1) { // It has a unique memory operand. Find corresponding ideal mem node. Node* m = NULL; if (leaf->is_Mem()) {