Skip to content

Commit

Permalink
[MERGE #5560 @rajatd] Insert bytecode uses before (vs after) the bran…
Browse files Browse the repository at this point in the history
…ch/compare instruction during UnsignedCmpPeep. OS#17686612

Merge pull request #5560 from rajatd:unsignedCmpPeep-bcu-1.10
  • Loading branch information
rajatd committed Aug 1, 2018
2 parents 6ada16b + 0f9d9e9 commit d28a85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Backend/FlowGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3958,7 +3958,6 @@ bool FlowGraph::UnsignedCmpPeep(IR::Instr *cmpInstr)
}

IR::ByteCodeUsesInstr * bytecodeInstr = IR::ByteCodeUsesInstr::New(cmpInstr);
cmpInstr->InsertAfter(bytecodeInstr);

if (cmpSrc1 != newSrc1)
{
Expand Down Expand Up @@ -3997,6 +3996,7 @@ bool FlowGraph::UnsignedCmpPeep(IR::Instr *cmpInstr)
}
}

cmpInstr->InsertBefore(bytecodeInstr);
return true;
}

Expand Down

0 comments on commit d28a85a

Please sign in to comment.