8141624: Limit calculation of pre loop during super word optimization is wrong

Reviewed-by: vlivanov, kvn
This commit is contained in:
Vladimir Kozlov 2015-11-10 21:36:35 -08:00
parent e73df9dee6
commit 6ed8c23581
2 changed files with 57 additions and 1 deletions

View file

@ -558,7 +558,7 @@ void SuperWord::find_adjacent_refs() {
assert(!same_velt_type(s, mem_ref), "sanity");
memops.push(s);
}
MemNode* best_align_to_mem_ref = find_align_to_ref(memops);
best_align_to_mem_ref = find_align_to_ref(memops);
if (best_align_to_mem_ref == NULL) {
NOT_PRODUCT(if (TraceSuperWord) tty->print_cr("SuperWord::find_adjacent_refs(): best_align_to_mem_ref == NULL");)
break;