Skip to content

Commit

Permalink
- WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Mar 26, 2024
1 parent 87c34b2 commit d78f083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Mosa.Compiler.Framework/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ public void SetInstruction(BaseInstruction instruction, int operandCount, int re
var label = Label;
var block = Block;

Clear();
Empty();

Instruction = instruction;
OperandCount = operandCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private bool CanAssignValueNumberToExpression(Node node)
|| node.Instruction.IsIOOperation
|| node.Instruction.HasUnspecifiedSideEffect
|| node.Instruction.HasVariableOperands
|| node.Instruction.IsFlowNext
|| !node.Instruction.IsFlowNext
|| node.Instruction.IgnoreDuringCodeGeneration
|| node.Operand1.IsUnresolvedConstant
|| (node.OperandCount == 2 && node.Operand2.IsUnresolvedConstant))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected static Node GetMotionLocation(Node start, Node end, int window)

if (next.IsBlockEndInstruction
|| next.Instruction.IsMemoryWrite
|| next.Instruction.IsFlowNext
|| !next.Instruction.IsFlowNext
|| next.Instruction.HasUnspecifiedSideEffect)
return next;

Expand Down

0 comments on commit d78f083

Please sign in to comment.