Skip to content

Commit

Permalink
Fix Code Motion Optimization Bug (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil authored Apr 7, 2024
1 parent b56938a commit 33c48a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ protected static Node GetMotionLocation(Node start, Node end, int window)

if (next.IsBlockEndInstruction
|| next.Instruction.IsMemoryWrite
|| next.Instruction.IsMemoryRead
|| next.Instruction.IsIOOperation
|| !next.Instruction.IsFlowNext
|| next.Instruction.HasUnspecifiedSideEffect)
return next;
Expand Down

0 comments on commit 33c48a5

Please sign in to comment.