| 930 | } |
| 931 | |
| 932 | void BeMCColorizer::AddEdge(int vreg0, int vreg1) |
| 933 | { |
| 934 | int checkVRegIdx0 = mContext->GetUnderlyingVReg(vreg0); |
| 935 | int checkVRegIdx1 = mContext->GetUnderlyingVReg(vreg1); |
| 936 | |
| 937 | if (checkVRegIdx0 == checkVRegIdx1) |
| 938 | return; |
| 939 | |
| 940 | auto node0 = &mNodes[checkVRegIdx0]; |
| 941 | auto node1 = &mNodes[checkVRegIdx1]; |
| 942 | |
| 943 | if ((node0->mWantsReg) && (node1->mWantsReg)) |
| 944 | { |
| 945 | node0->mEdges.Add(checkVRegIdx1); |
| 946 | node1->mEdges.Add(checkVRegIdx0); |
| 947 | } |
| 948 | } |
| 949 | |
| 950 | void BeMCColorizer::PropogateMemCost(const BeMCOperand & operand, int memCost) |
| 951 | { |
no test coverage detected