提交 ae4a69c4 编写于 作者: N never

6646020: assert(in_bb(n),"must be in block") in -Xcomp mode

Reviewed-by: kvn, rasbold
上级 f02805ac
...@@ -65,6 +65,11 @@ void SuperWord::transform_loop(IdealLoopTree* lpt) { ...@@ -65,6 +65,11 @@ void SuperWord::transform_loop(IdealLoopTree* lpt) {
Node *cl_exit = cl->loopexit(); Node *cl_exit = cl->loopexit();
if (cl_exit->in(0) != lpt->_head) return; if (cl_exit->in(0) != lpt->_head) return;
// Make sure the are no extra control users of the loop backedge
if (cl->back_control()->outcnt() != 1) {
return;
}
// Check for pre-loop ending with CountedLoopEnd(Bool(Cmp(x,Opaque1(limit)))) // Check for pre-loop ending with CountedLoopEnd(Bool(Cmp(x,Opaque1(limit))))
CountedLoopEndNode* pre_end = get_pre_loop_end(cl); CountedLoopEndNode* pre_end = get_pre_loop_end(cl);
if (pre_end == NULL) return; if (pre_end == NULL) return;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册