6991577: add IfOp optimization to C1

Ifop optimization for c1

Reviewed-by: never, phh, iveresov
This commit is contained in:
Roland Westrelin 2010-10-15 09:38:20 +02:00
parent 225a3b0eb8
commit e1a504b343
6 changed files with 246 additions and 173 deletions

View file

@ -178,15 +178,11 @@ class Compilation: public StackObj {
return (int) NMethodSizeLimit; // default 256K or 512K
#else
// conditional branches on PPC are restricted to 16 bit signed
return MAX2((unsigned int)NMethodSizeLimit,32*K);
return MIN2((unsigned int)NMethodSizeLimit,32*K);
#endif
}
static int desired_max_constant_size() {
#ifndef PPC
return (int) NMethodSizeLimit / 10; // about 25K
#else
return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10;
#endif
return desired_max_code_buffer_size() / 10;
}
static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);