diff --git a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MaxNode.java b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MaxNode.java index b6992f36..dc63a4e9 100644 --- a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MaxNode.java +++ b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MaxNode.java @@ -32,6 +32,11 @@ public void evalMulti(double[] res, int[] x, int[] y, int[] z, EvalType type) { } } + @Override + public boolean canSwapOperandsSafely() { + return false; + } + @Override public void doBytecodeGenSingle(BytecodeGen.Context context, InstructionAdapter m, BytecodeGen.Context.LocalVarConsumer localVarConsumer) { super.doBytecodeGenSingle(context, m, localVarConsumer); diff --git a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MinNode.java b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MinNode.java index 48bf605a..6d215dba 100644 --- a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MinNode.java +++ b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/ast/binary/MinNode.java @@ -32,6 +32,11 @@ public void evalMulti(double[] res, int[] x, int[] y, int[] z, EvalType type) { } } + @Override + public boolean canSwapOperandsSafely() { + return false; + } + @Override public void doBytecodeGenSingle(BytecodeGen.Context context, InstructionAdapter m, BytecodeGen.Context.LocalVarConsumer localVarConsumer) { super.doBytecodeGenSingle(context, m, localVarConsumer);