mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
7026957: assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int()) failed
Reviewed-by: kvn, jrose
This commit is contained in:
parent
80dfa0e342
commit
774ac503d0
1 changed files with 6 additions and 3 deletions
|
@ -2112,9 +2112,12 @@ bool PhaseIdealLoop::match_fill_loop(IdealLoopTree* lpt, Node*& store, Node*& st
|
||||||
if (value != head->phi()) {
|
if (value != head->phi()) {
|
||||||
msg = "unhandled shift in address";
|
msg = "unhandled shift in address";
|
||||||
} else {
|
} else {
|
||||||
found_index = true;
|
if (type2aelembytes(store->as_Mem()->memory_type(), true) != (1 << n->in(2)->get_int())) {
|
||||||
shift = n;
|
msg = "scale doesn't match";
|
||||||
assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int(), "scale should match");
|
} else {
|
||||||
|
found_index = true;
|
||||||
|
shift = n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} 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()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue