Skip to content

Commit c78ec16

Browse files
dbriemannTheRealMDoerr
authored andcommitted
8369979: Flag UsePopCountInstruction was accidentally disabled on PPC64
Backport-of: 9b9559a2e33827126e1aeab7bf6f4861acaae109
1 parent 9bafce8 commit c78ec16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hotspot/cpu/ppc/vm_version_ppc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ void VM_Version::initialize() {
9797
FLAG_SET_ERGO(TrapBasedRangeChecks, false);
9898
}
9999

100+
if (FLAG_IS_DEFAULT(UsePopCountInstruction)) {
101+
FLAG_SET_ERGO(UsePopCountInstruction, true);
102+
}
103+
100104
if (PowerArchitecturePPC64 >= 9) {
101105
// Performance is good since Power9.
102106
if (FLAG_IS_DEFAULT(SuperwordUseVSX)) {

0 commit comments

Comments
 (0)