Mercurial > hg > graal-compiler
comparison src/share/vm/opto/macro.cpp @ 216:8d191a7697e2
6715633: when matching a memory node the adr_type should not change
Summary: verify the adr_type of a mach node was not changed
Reviewed-by: rasbold, never
author | kvn |
---|---|
date | Fri, 20 Jun 2008 11:10:05 -0700 |
parents | 7793bd37a336 |
children | 1e026f8da827 |
comparison
equal
deleted
inserted
replaced
215:273eaa04d9a1 | 216:8d191a7697e2 |
---|---|
1672 case Node::Class_Lock: | 1672 case Node::Class_Lock: |
1673 case Node::Class_Unlock: | 1673 case Node::Class_Unlock: |
1674 success = eliminate_locking_node(n->as_AbstractLock()); | 1674 success = eliminate_locking_node(n->as_AbstractLock()); |
1675 break; | 1675 break; |
1676 default: | 1676 default: |
1677 assert(false, "unknown node type in macro list"); | 1677 if (n->Opcode() == Op_Opaque1 || n->Opcode() == Op_Opaque2) { |
1678 _igvn.add_users_to_worklist(n); | |
1679 _igvn.hash_delete(n); | |
1680 _igvn.subsume_node(n, n->in(1)); | |
1681 success = true; | |
1682 } else { | |
1683 assert(false, "unknown node type in macro list"); | |
1684 } | |
1678 } | 1685 } |
1679 assert(success == (C->macro_count() < old_macro_count), "elimination reduces macro count"); | 1686 assert(success == (C->macro_count() < old_macro_count), "elimination reduces macro count"); |
1680 progress = progress || success; | 1687 progress = progress || success; |
1681 } | 1688 } |
1682 } | 1689 } |