mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed ReplaceWithNewVReg from mov arg0 vregload
This commit is contained in:
parent
d63d65bd71
commit
d4d6ba60fb
1 changed files with 3 additions and 3 deletions
|
@ -3787,7 +3787,7 @@ BeMCOperand BeMCContext::AllocVirtualReg(BeType* type, int refCount, bool mustBe
|
||||||
|
|
||||||
if (mDebugging)
|
if (mDebugging)
|
||||||
{
|
{
|
||||||
if (mcOperand.mVRegIdx == 6)
|
if (mcOperand.mVRegIdx == 227)
|
||||||
{
|
{
|
||||||
NOP;
|
NOP;
|
||||||
}
|
}
|
||||||
|
@ -10361,7 +10361,7 @@ bool BeMCContext::DoLegalization()
|
||||||
inst->mArg0.mKind = BeMCOperandKind_SymbolAddr;
|
inst->mArg0.mKind = BeMCOperandKind_SymbolAddr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReplaceWithNewVReg(inst->mArg0, movInstIdx, true, false);
|
ReplaceWithNewVReg(inst->mArg0, movInstIdx, true, false, true);
|
||||||
auto vregInfo = GetVRegInfo(inst->mArg0);
|
auto vregInfo = GetVRegInfo(inst->mArg0);
|
||||||
vregInfo->mDisableR11 = true;
|
vregInfo->mDisableR11 = true;
|
||||||
instIdx += 2;
|
instIdx += 2;
|
||||||
|
@ -15839,7 +15839,7 @@ void BeMCContext::Generate(BeFunction* function)
|
||||||
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
||||||
|
|
||||||
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
||||||
//mDebugging = (function->mName == "?Zoips@TestProgram@BeefTest@bf@@SAXXZ");
|
//mDebugging = (function->mName == "?Init@TimeZoneInfo@System@bf@@AEAA?AU?$Result@X@23@UStringView@23@VTimeSpan@23@000PEAV?$Array1@PEAVAdjustmentRule@TimeZoneInfo@System@bf@@@23@_N@Z");
|
||||||
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
||||||
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
||||||
// ;
|
// ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue