Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
850:fd50a67f97d1 | 851:fc4be448891f |
---|---|
1487 if( mem != (Node*)1 ) { | 1487 if( mem != (Node*)1 ) { |
1488 mach->ins_req(MemNode::Memory,mem); | 1488 mach->ins_req(MemNode::Memory,mem); |
1489 #ifdef ASSERT | 1489 #ifdef ASSERT |
1490 // Verify adr type after matching memory operation | 1490 // Verify adr type after matching memory operation |
1491 const MachOper* oper = mach->memory_operand(); | 1491 const MachOper* oper = mach->memory_operand(); |
1492 if (oper != NULL && oper != (MachOper*)-1 && | 1492 if (oper != NULL && oper != (MachOper*)-1) { |
1493 mach->adr_type() != TypeRawPtr::BOTTOM) { // non-direct addressing mode | |
1494 // It has a unique memory operand. Find corresponding ideal mem node. | 1493 // It has a unique memory operand. Find corresponding ideal mem node. |
1495 Node* m = NULL; | 1494 Node* m = NULL; |
1496 if (leaf->is_Mem()) { | 1495 if (leaf->is_Mem()) { |
1497 m = leaf; | 1496 m = leaf; |
1498 } else { | 1497 } else { |