equal
deleted
inserted
replaced
401 // Move. We also look for reloads of identical constants. |
401 // Move. We also look for reloads of identical constants. |
402 // |
402 // |
403 // When we see a use from a reg-reg Copy, we will attempt to use the copy's |
403 // When we see a use from a reg-reg Copy, we will attempt to use the copy's |
404 // source directly and make the copy go dead. |
404 // source directly and make the copy go dead. |
405 void PhaseChaitin::post_allocate_copy_removal() { |
405 void PhaseChaitin::post_allocate_copy_removal() { |
406 NOT_PRODUCT( Compile::TracePhase t3("postAllocCopyRemoval", &_t_postAllocCopyRemoval, TimeCompiler); ) |
406 Compile::TracePhase tp("postAllocCopyRemoval", &timers[_t_postAllocCopyRemoval]); |
407 ResourceMark rm; |
407 ResourceMark rm; |
408 |
408 |
409 // Need a mapping from basic block Node_Lists. We need a Node_List to |
409 // Need a mapping from basic block Node_Lists. We need a Node_List to |
410 // map from register number to value-producing Node. |
410 // map from register number to value-producing Node. |
411 Node_List **blk2value = NEW_RESOURCE_ARRAY( Node_List *, _cfg.number_of_blocks() + 1); |
411 Node_List **blk2value = NEW_RESOURCE_ARRAY( Node_List *, _cfg.number_of_blocks() + 1); |