>]
/// CHECK-START: long Main.Div1(long) instruction_simplifier (after)
/// CHECK-DAG: <
> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Div1(long) instruction_simplifier (after)
/// CHECK-NOT: Div
public static long Div1(long arg) {
return arg / 1;
}
/// CHECK-START: int Main.DivN1(int) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant -1
/// CHECK-DAG: <> Div [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.DivN1(int) instruction_simplifier (after)
/// CHECK-DAG: <
> ParameterValue
/// CHECK-DAG: <> Neg [<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.DivN1(int) instruction_simplifier (after)
/// CHECK-NOT: Div
public static int DivN1(int arg) {
return arg / -1;
}
/// CHECK-START: long Main.Mul1(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> LongConstant 1
/// CHECK-DAG: <> Mul [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Mul1(long) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Mul1(long) instruction_simplifier (after)
/// CHECK-NOT: Mul
public static long Mul1(long arg) {
return arg * 1;
}
/// CHECK-START: int Main.MulN1(int) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant -1
/// CHECK-DAG: <> Mul [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.MulN1(int) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> Neg [<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.MulN1(int) instruction_simplifier (after)
/// CHECK-NOT: Mul
public static int MulN1(int arg) {
return arg * -1;
}
/// CHECK-START: long Main.MulPowerOfTwo128(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> LongConstant 128
/// CHECK-DAG: <> Mul [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.MulPowerOfTwo128(long) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant 7
/// CHECK-DAG: <> Shl [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.MulPowerOfTwo128(long) instruction_simplifier (after)
/// CHECK-NOT: Mul
public static long MulPowerOfTwo128(long arg) {
return arg * 128;
}
/// CHECK-START: int Main.Or0(int) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant 0
/// CHECK-DAG: <> Or [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.Or0(int) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.Or0(int) instruction_simplifier (after)
/// CHECK-NOT: Or
public static int Or0(int arg) {
return arg | 0;
}
/// CHECK-START: long Main.OrSame(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> Or [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.OrSame(long) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.OrSame(long) instruction_simplifier (after)
/// CHECK-NOT: Or
public static long OrSame(long arg) {
return arg | arg;
}
/// CHECK-START: int Main.Shl0(int) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant 0
/// CHECK-DAG: <> Shl [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.Shl0(int) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: int Main.Shl0(int) instruction_simplifier (after)
/// CHECK-NOT: Shl
public static int Shl0(int arg) {
return arg << 0;
}
/// CHECK-START: long Main.Shr0(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant 0
/// CHECK-DAG: <> Shr [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Shr0(long) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Shr0(long) instruction_simplifier (after)
/// CHECK-NOT: Shr
public static long Shr0(long arg) {
return arg >> 0;
}
/// CHECK-START: long Main.Shr64(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> IntConstant 64
/// CHECK-DAG: <> Shr [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Shr64(long) instruction_simplifier (after)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Shr64(long) instruction_simplifier (after)
/// CHECK-NOT: Shr
public static long Shr64(long arg) {
return arg >> 64;
}
/// CHECK-START: long Main.Sub0(long) instruction_simplifier (before)
/// CHECK-DAG: <> ParameterValue
/// CHECK-DAG: <> LongConstant 0
/// CHECK-DAG: <> Sub [<>,<>]
/// CHECK-DAG: Return [<>]
/// CHECK-START: long Main.Sub0(long) instruction_simplifier (after)
/// CHECK-DAG: <