comparison src/share/vm/adlc/formssel.cpp @ 3854:1af104d6cf99

7079329: Adjust allocation prefetching for T4 Summary: on T4 2 BIS instructions should be issued to prefetch 64 bytes Reviewed-by: iveresov, phh, twisti
author kvn
date Tue, 16 Aug 2011 16:59:46 -0700
parents 11211f7cb5a0
children ae839d1e7d4c
comparison
equal deleted inserted replaced
3853:11211f7cb5a0 3854:1af104d6cf99
3388 "CompareAndSwapI", "CompareAndSwapL", "CompareAndSwapP", "CompareAndSwapN", 3388 "CompareAndSwapI", "CompareAndSwapL", "CompareAndSwapP", "CompareAndSwapN",
3389 "StoreCM", 3389 "StoreCM",
3390 "ClearArray" 3390 "ClearArray"
3391 }; 3391 };
3392 int cnt = sizeof(needs_ideal_memory_list)/sizeof(char*); 3392 int cnt = sizeof(needs_ideal_memory_list)/sizeof(char*);
3393 if( strcmp(_opType,"PrefetchRead")==0 || strcmp(_opType,"PrefetchWrite")==0 ) 3393 if( strcmp(_opType,"PrefetchRead")==0 ||
3394 strcmp(_opType,"PrefetchWrite")==0 ||
3395 strcmp(_opType,"PrefetchAllocation")==0 )
3394 return 1; 3396 return 1;
3395 if( _lChild ) { 3397 if( _lChild ) {
3396 const char *opType = _lChild->_opType; 3398 const char *opType = _lChild->_opType;
3397 for( int i=0; i<cnt; i++ ) 3399 for( int i=0; i<cnt; i++ )
3398 if( strcmp(opType,needs_ideal_memory_list[i]) == 0 ) 3400 if( strcmp(opType,needs_ideal_memory_list[i]) == 0 )