comparison src/share/vm/opto/lcm.cpp @ 12174:a9a968364704

8024095: Missing brackets in local scheduling code. Summary: Added brackets for if-statement Reviewed-by: kvn, roland
author adlertz
date Mon, 02 Sep 2013 22:44:57 +0200
parents 4b078f877b56
children c9ccd7b85f20
comparison
equal deleted inserted replaced
12173:27ffd1c4537b 12174:a9a968364704
548 void PhaseCFG::needed_for_next_call(Block* block, Node* this_call, VectorSet& next_call) { 548 void PhaseCFG::needed_for_next_call(Block* block, Node* this_call, VectorSet& next_call) {
549 // Find the next control-defining Node in this block 549 // Find the next control-defining Node in this block
550 Node* call = NULL; 550 Node* call = NULL;
551 for (DUIterator_Fast imax, i = this_call->fast_outs(imax); i < imax; i++) { 551 for (DUIterator_Fast imax, i = this_call->fast_outs(imax); i < imax; i++) {
552 Node* m = this_call->fast_out(i); 552 Node* m = this_call->fast_out(i);
553 if(get_block_for_node(m) == block && // Local-block user 553 if (get_block_for_node(m) == block && // Local-block user
554 m != this_call && // Not self-start node 554 m != this_call && // Not self-start node
555 m->is_MachCall() ) 555 m->is_MachCall()) {
556 call = m; 556 call = m;
557 break; 557 break;
558 }
558 } 559 }
559 if (call == NULL) return; // No next call (e.g., block end is near) 560 if (call == NULL) return; // No next call (e.g., block end is near)
560 // Set next-call for all inputs to this call 561 // Set next-call for all inputs to this call
561 set_next_call(block, call, next_call); 562 set_next_call(block, call, next_call);
562 } 563 }