comparison src/share/vm/opto/loopopts.cpp @ 1254:4ee1c645110e

6924097: assert((_type == Type::MEMORY) == (_adr_type != 0),"adr_type for memory phis only") Summary: Use PhiNode::make_blank(r, n) method to construct the phi. Reviewed-by: never
author kvn
date Tue, 09 Feb 2010 10:21:06 -0800
parents 18f526145aea
children c18cbe5936b8
comparison
equal deleted inserted replaced
1253:f70b0d9ab095 1254:4ee1c645110e
1 /* 1 /*
2 * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1999-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
45 int iid = t_oop->instance_id(); 45 int iid = t_oop->instance_id();
46 int index = C->get_alias_index(t_oop); 46 int index = C->get_alias_index(t_oop);
47 int offset = t_oop->offset(); 47 int offset = t_oop->offset();
48 phi = new (C,region->req()) PhiNode(region, type, NULL, iid, index, offset); 48 phi = new (C,region->req()) PhiNode(region, type, NULL, iid, index, offset);
49 } else { 49 } else {
50 phi = new (C,region->req()) PhiNode(region, type); 50 phi = PhiNode::make_blank(region, n);
51 } 51 }
52 uint old_unique = C->unique(); 52 uint old_unique = C->unique();
53 for( uint i = 1; i < region->req(); i++ ) { 53 for( uint i = 1; i < region->req(); i++ ) {
54 Node *x; 54 Node *x;
55 Node* the_clone = NULL; 55 Node* the_clone = NULL;