Mercurial > hg > truffle
comparison src/share/vm/opto/coalesce.cpp @ 11198:1e6d5dec4a4e
Merge.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Aug 2013 13:20:06 +0200 |
parents | 693e4d04fd09 |
children | d1034bd8cefc |
comparison
equal
deleted
inserted
replaced
11197:3479ab380552 | 11198:1e6d5dec4a4e |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. 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. |
238 // All new nodes added are actual copies to replace virtual copies. | 238 // All new nodes added are actual copies to replace virtual copies. |
239 // Nodes with index less than '_unique' are original, non-virtual Nodes. | 239 // Nodes with index less than '_unique' are original, non-virtual Nodes. |
240 _unique = C->unique(); | 240 _unique = C->unique(); |
241 | 241 |
242 for( uint i=0; i<_phc._cfg._num_blocks; i++ ) { | 242 for( uint i=0; i<_phc._cfg._num_blocks; i++ ) { |
243 C->check_node_count(NodeLimitFudgeFactor, "out of nodes in coalesce"); | |
244 if (C->failing()) return; | |
243 Block *b = _phc._cfg._blocks[i]; | 245 Block *b = _phc._cfg._blocks[i]; |
244 uint cnt = b->num_preds(); // Number of inputs to the Phi | 246 uint cnt = b->num_preds(); // Number of inputs to the Phi |
245 | 247 |
246 for( uint l = 1; l<b->_nodes.size(); l++ ) { | 248 for( uint l = 1; l<b->_nodes.size(); l++ ) { |
247 Node *n = b->_nodes[l]; | 249 Node *n = b->_nodes[l]; |