equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2012, 2015 SAP SE. All rights reserved. |
3 * Copyright (c) 2012, 2018 SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
27 #include "opto/compile.hpp" |
27 #include "opto/compile.hpp" |
28 #include "opto/node.hpp" |
28 #include "opto/node.hpp" |
29 #include "runtime/globals.hpp" |
29 #include "runtime/globals.hpp" |
30 #include "utilities/debug.hpp" |
30 #include "utilities/debug.hpp" |
31 |
31 |
32 // processor dependent initialization for ppc |
32 // Processor dependent initialization of C2 compiler for ppc. |
33 |
33 |
34 void Compile::pd_compiler2_init() { |
34 void Compile::pd_compiler2_init() { |
35 |
35 |
36 // Power7 and later |
36 // Power7 and later. |
37 if (PowerArchitecturePPC64 > 6) { |
37 if (PowerArchitecturePPC64 > 6) { |
38 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { |
38 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { |
39 FLAG_SET_ERGO(bool, UsePopCountInstruction, true); |
39 FLAG_SET_ERGO(bool, UsePopCountInstruction, true); |
40 } |
40 } |
41 } |
41 } |