changeset 7376:27ee289ec5a7

Long.bitCount should also not be intrinsified if popcnt is missing
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 15 Jan 2013 11:10:59 +0100
parents deac35fb97a2
children 53d5f5fc4dd9 7fe352e0b8e0
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotSnippetInstaller.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotSnippetInstaller.java	Tue Jan 15 00:51:29 2013 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotSnippetInstaller.java	Tue Jan 15 11:10:59 2013 +0100
@@ -43,7 +43,7 @@
 
     @Override
     protected void installSubstitution(Method originalMethod, Method substituteMethod) {
-        if (substituteMethod.getDeclaringClass() == IntegerSubstitutions.class) {
+        if (substituteMethod.getDeclaringClass() == IntegerSubstitutions.class || substituteMethod.getDeclaringClass() == LongSubstitutions.class) {
             if (substituteMethod.getName().equals("bitCount")) {
                 if (!config.usePopCountInstruction) {
                     return;