src/share/vm/opto/matcher.cpp

changeset 1638
844a9d73ec22
parent 1572
97125851f396
child 1907
c18cbe5936b8
child 1930
3657cb01ffc5
equal deleted inserted replaced
1637:5f24d0319e54 1638:844a9d73ec22
1 /* 1 /*
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
1578 mach->ins_req(AddPNode::Base,leaf->in(AddPNode::Base)); 1578 mach->ins_req(AddPNode::Base,leaf->in(AddPNode::Base));
1579 1579
1580 uint num_proj = _proj_list.size(); 1580 uint num_proj = _proj_list.size();
1581 1581
1582 // Perform any 1-to-many expansions required 1582 // Perform any 1-to-many expansions required
1583 MachNode *ex = mach->Expand(s,_proj_list); 1583 MachNode *ex = mach->Expand(s,_proj_list, mem);
1584 if( ex != mach ) { 1584 if( ex != mach ) {
1585 assert(ex->ideal_reg() == mach->ideal_reg(), "ideal types should match"); 1585 assert(ex->ideal_reg() == mach->ideal_reg(), "ideal types should match");
1586 if( ex->in(1)->is_Con() ) 1586 if( ex->in(1)->is_Con() )
1587 ex->in(1)->set_req(0, C->root()); 1587 ex->in(1)->set_req(0, C->root());
1588 // Remove old node from the graph 1588 // Remove old node from the graph

mercurial