# HG changeset patch # User Gilles Duboscq # Date 1358244659 -3600 # Node ID 27ee289ec5a7f23d21306d182c2d0586624fc81c # Parent deac35fb97a20dfa5b67767265ac5aae28a956b5 Long.bitCount should also not be intrinsified if popcnt is missing diff -r deac35fb97a2 -r 27ee289ec5a7 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotSnippetInstaller.java --- 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;