mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed reg cost calculation for mov to symbol
This commit is contained in:
parent
f993d3cc62
commit
80007037d7
1 changed files with 2 additions and 4 deletions
|
@ -977,10 +977,8 @@ void BeMCColorizer::GenerateRegCosts()
|
|||
{
|
||||
auto inst = mcBlock->mInstructions[instIdx];
|
||||
|
||||
if ((inst->IsMov()) && (inst->mArg1.IsNativeReg()) && (!inst->mArg0.IsNativeReg()))
|
||||
if ((inst->IsMov()) && (inst->mArg1.IsNativeReg()) && (inst->mArg0.IsVReg()))
|
||||
{
|
||||
BF_ASSERT(inst->mArg0.IsVReg());
|
||||
|
||||
int vregIdx = mContext->GetUnderlyingVReg(inst->mArg0.mVRegIdx);
|
||||
auto reg = mContext->GetFullRegister(inst->mArg1.mReg);
|
||||
|
||||
|
@ -15850,7 +15848,7 @@ void BeMCContext::Generate(BeFunction* function)
|
|||
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
||||
|
||||
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
||||
//mDebugging = (function->mName == "??Kint2@bf@@SA?A01@01@0@Z");
|
||||
mDebugging = (function->mName == "?TestBug@TestProgram@BeefTest@bf@@SAXXZ");
|
||||
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
||||
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
||||
// ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue