[refactor] Remove redundant check
@@ -468,13 +468,8 @@ public class OCLArithmeticTool extends ArithmeticLIRGenerator {
public Value emitMathSignum(Value input) {
Logger.traceBuildLIR(Logger.BACKEND.OpenCL, "emitMathSignum: input=%s", input);
OCLBuiltinTool builtinTool = getGen().getOCLBuiltinTool();
- OCLKind oclKind = (OCLKind) input.getPlatformKind();
Variable result = getGen().newVariable(input.getValueKind());
- if (oclKind.isFloating()) {
getGen().append(new AssignStmt(result, builtinTool.genFloatSign(input)));
- } else {
- shouldNotReachHere();
- }
return result;
}
