Skip to content

Commit

Permalink
[1.10>master] [MERGE #5560 @rajatd] Insert bytecode uses before (vs a…
Browse files Browse the repository at this point in the history
…fter) the branch/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 e1e73e7 + d28a85a commit d28eb4a
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 d28eb4a

Please sign in to comment.