Mercurial > hg > graal-compiler
comparison src/share/vm/opto/loopTransform.cpp @ 2448:8b2317d732ec
7026957: assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int()) failed
Reviewed-by: kvn, jrose
author | never |
---|---|
date | Mon, 04 Apr 2011 12:57:04 -0700 |
parents | 08eb13460b3a |
children | d7a3fed1c1c9 |
comparison
equal
deleted
inserted
replaced
2447:e863062e521d | 2448:8b2317d732ec |
---|---|
2110 } | 2110 } |
2111 #endif | 2111 #endif |
2112 if (value != head->phi()) { | 2112 if (value != head->phi()) { |
2113 msg = "unhandled shift in address"; | 2113 msg = "unhandled shift in address"; |
2114 } else { | 2114 } else { |
2115 found_index = true; | 2115 if (type2aelembytes(store->as_Mem()->memory_type(), true) != (1 << n->in(2)->get_int())) { |
2116 shift = n; | 2116 msg = "scale doesn't match"; |
2117 assert(type2aelembytes(store->as_Mem()->memory_type(), true) == 1 << shift->in(2)->get_int(), "scale should match"); | 2117 } else { |
2118 found_index = true; | |
2119 shift = n; | |
2120 } | |
2118 } | 2121 } |
2119 } else if (n->Opcode() == Op_ConvI2L && conv == NULL) { | 2122 } else if (n->Opcode() == Op_ConvI2L && conv == NULL) { |
2120 if (n->in(1) == head->phi()) { | 2123 if (n->in(1) == head->phi()) { |
2121 found_index = true; | 2124 found_index = true; |
2122 conv = n; | 2125 conv = n; |