Mercurial > hg > truffle
comparison src/share/vm/opto/loopTransform.cpp @ 2450:a54519951ff6
Merge
author | iveresov |
---|---|
date | Mon, 04 Apr 2011 18:48:49 -0700 |
parents | 8b2317d732ec |
children | d7a3fed1c1c9 |
comparison
equal
deleted
inserted
replaced
2449:bb22629531fa | 2450:a54519951ff6 |
---|---|
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; |