mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
6991577: add IfOp optimization to C1
Ifop optimization for c1 Reviewed-by: never, phh, iveresov
This commit is contained in:
parent
225a3b0eb8
commit
e1a504b343
6 changed files with 246 additions and 173 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue