ifacmpeq vs ifnonnull, ifeq vs ificmpne
This commit is contained in:
@@ -19,7 +19,7 @@ public class IfACmpEq extends If
|
|||||||
if (super.isSame(thisIc, otherIc))
|
if (super.isSame(thisIc, otherIc))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (otherIc.getInstruction() instanceof IfNull)
|
if (otherIc.getInstruction() instanceof IfNull || otherIc.getInstruction() instanceof IfNonNull)
|
||||||
{
|
{
|
||||||
StackContext s1 = thisIc.getPops().get(0),
|
StackContext s1 = thisIc.getPops().get(0),
|
||||||
s2 = thisIc.getPops().get(1);
|
s2 = thisIc.getPops().get(1);
|
||||||
@@ -44,7 +44,7 @@ public class IfACmpEq extends If
|
|||||||
@Override
|
@Override
|
||||||
public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other)
|
public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other)
|
||||||
{
|
{
|
||||||
if (other.getInstruction() instanceof IfACmpNe)
|
if (other.getInstruction() instanceof IfACmpNe || other.getInstruction() instanceof IfNonNull)
|
||||||
{
|
{
|
||||||
super.mapOtherBranch(mapping, ctx, other);
|
super.mapOtherBranch(mapping, ctx, other);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class IfEq extends If0
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (otherIc.getInstruction() instanceof IfICmpNe)
|
else if (otherIc.getInstruction() instanceof IfICmpEq || otherIc.getInstruction() instanceof IfICmpNe)
|
||||||
{
|
{
|
||||||
StackContext s1 = otherIc.getPops().get(0),
|
StackContext s1 = otherIc.getPops().get(0),
|
||||||
s2 = otherIc.getPops().get(1);
|
s2 = otherIc.getPops().get(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user