comparison src/share/vm/opto/machnode.cpp @ 851:fc4be448891f

6851742: (EA) allocation elimination doesn't work with UseG1GC Summary: Fix eliminate_card_mark() to eliminate G1 pre/post barriers. Reviewed-by: never
author kvn
date Thu, 16 Jul 2009 14:10:42 -0700
parents fbc12e71c476
children 18f526145aea
comparison
equal deleted inserted replaced
850:fd50a67f97d1 851:fc4be448891f
298 if( t_offset->is_con() ) { 298 if( t_offset->is_con() ) {
299 offset = t_offset->get_con(); 299 offset = t_offset->get_con();
300 } 300 }
301 } 301 }
302 adr_type = t_disp->add_offset(offset); 302 adr_type = t_disp->add_offset(offset);
303 } else if( base == NULL && offset != 0 && offset != Type::OffsetBot ) {
304 // Use ideal type if it is oop ptr.
305 const TypePtr *tp = oper->type()->isa_ptr();
306 if( tp != NULL) {
307 adr_type = tp;
308 }
303 } 309 }
304 } 310 }
305 311
306 } 312 }
307 return base; 313 return base;