提交 931ec398 编写于 作者: N never

7026957: assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 <<...

7026957: assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int()) failed
Reviewed-by: kvn, jrose
上级 b19bba8c
...@@ -2111,10 +2111,13 @@ bool PhaseIdealLoop::match_fill_loop(IdealLoopTree* lpt, Node*& store, Node*& st ...@@ -2111,10 +2111,13 @@ bool PhaseIdealLoop::match_fill_loop(IdealLoopTree* lpt, Node*& store, Node*& st
#endif #endif
if (value != head->phi()) { if (value != head->phi()) {
msg = "unhandled shift in address"; msg = "unhandled shift in address";
} else {
if (type2aelembytes(store->as_Mem()->memory_type(), true) != (1 << n->in(2)->get_int())) {
msg = "scale doesn't match";
} else { } else {
found_index = true; found_index = true;
shift = n; shift = n;
assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int(), "scale should match"); }
} }
} else if (n->Opcode() == Op_ConvI2L && conv == NULL) { } else if (n->Opcode() == Op_ConvI2L && conv == NULL) {
if (n->in(1) == head->phi()) { if (n->in(1) == head->phi()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册