提交 d100f1d6 编写于 作者: K kvn

7198606: Improve VM optimization

Summary: Remove incorrect code in OptimizeFill optimization.
Reviewed-by: roland, twisti
上级 e13b1655
...@@ -2716,6 +2716,8 @@ bool PhaseIdealLoop::intrinsify_fill(IdealLoopTree* lpt) { ...@@ -2716,6 +2716,8 @@ bool PhaseIdealLoop::intrinsify_fill(IdealLoopTree* lpt) {
result_mem = new (C, 1) ProjNode(call,TypeFunc::Memory); result_mem = new (C, 1) ProjNode(call,TypeFunc::Memory);
_igvn.register_new_node_with_optimizer(result_mem); _igvn.register_new_node_with_optimizer(result_mem);
/* Disable following optimization until proper fix (add missing checks).
// If this fill is tightly coupled to an allocation and overwrites // If this fill is tightly coupled to an allocation and overwrites
// the whole body, allow it to take over the zeroing. // the whole body, allow it to take over the zeroing.
AllocateNode* alloc = AllocateNode::Ideal_allocation(base, this); AllocateNode* alloc = AllocateNode::Ideal_allocation(base, this);
...@@ -2739,6 +2741,7 @@ bool PhaseIdealLoop::intrinsify_fill(IdealLoopTree* lpt) { ...@@ -2739,6 +2741,7 @@ bool PhaseIdealLoop::intrinsify_fill(IdealLoopTree* lpt) {
#endif #endif
} }
} }
*/
// Redirect the old control and memory edges that are outside the loop. // Redirect the old control and memory edges that are outside the loop.
Node* exit = head->loopexit()->proj_out(0); Node* exit = head->loopexit()->proj_out(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册