Skip to content

Commit

Permalink
Style fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mur47x111 committed May 19, 2020
1 parent 637ecc2 commit 107bda5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ private static Stamp computeStamp(Stamp stampX, Stamp stampY, Stamp stampZ) {
}

@Override
public ValueNode canonical(CanonicalizerTool tool, ValueNode x, ValueNode y, ValueNode z) {
if (x.isConstant() && y.isConstant() && z.isConstant()) {
JavaConstant constantX = x.asJavaConstant();
JavaConstant constantY = y.asJavaConstant();
JavaConstant constantZ = z.asJavaConstant();
if (x.getStackKind() == JavaKind.Float) {
public ValueNode canonical(CanonicalizerTool tool, ValueNode forX, ValueNode forY, ValueNode forZ) {
if (forX.isConstant() && forY.isConstant() && forZ.isConstant()) {
JavaConstant constantX = forX.asJavaConstant();
JavaConstant constantY = forY.asJavaConstant();
JavaConstant constantZ = forZ.asJavaConstant();
if (forX.getStackKind() == JavaKind.Float) {
return ConstantNode.forFloat(GraalServices.fma(constantX.asFloat(), constantY.asFloat(), constantZ.asFloat()));
} else {
assert x.getStackKind() == JavaKind.Double;
assert forX.getStackKind() == JavaKind.Double;
return ConstantNode.forDouble(GraalServices.fma(constantX.asDouble(), constantY.asDouble(), constantZ.asDouble()));
}
}
Expand Down

0 comments on commit 107bda5

Please sign in to comment.