equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, 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. |
616 |
616 |
617 // If this block has a visited predecessor AND that predecessor has this |
617 // If this block has a visited predecessor AND that predecessor has this |
618 // last block as his only undone child, we can move the OopFlow from the |
618 // last block as his only undone child, we can move the OopFlow from the |
619 // pred to this block. Otherwise we have to grab a new OopFlow. |
619 // pred to this block. Otherwise we have to grab a new OopFlow. |
620 OopFlow *flow = NULL; // Flag for finding optimized flow |
620 OopFlow *flow = NULL; // Flag for finding optimized flow |
621 Block *pred = (Block*)0xdeadbeef; |
621 Block *pred = (Block*)((intptr_t)0xdeadbeef); |
622 // Scan this block's preds to find a done predecessor |
622 // Scan this block's preds to find a done predecessor |
623 for (uint j = 1; j < b->num_preds(); j++) { |
623 for (uint j = 1; j < b->num_preds(); j++) { |
624 Block* p = _cfg->get_block_for_node(b->pred(j)); |
624 Block* p = _cfg->get_block_for_node(b->pred(j)); |
625 OopFlow *p_flow = flows[p->_pre_order]; |
625 OopFlow *p_flow = flows[p->_pre_order]; |
626 if( p_flow ) { // Predecessor is done |
626 if( p_flow ) { // Predecessor is done |