mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed mem vreg merge issue
This commit is contained in:
parent
42580df269
commit
d046cb10a4
1 changed files with 4 additions and 2 deletions
|
@ -3785,7 +3785,7 @@ BeMCOperand BeMCContext::AllocVirtualReg(BeType* type, int refCount, bool mustBe
|
||||||
|
|
||||||
if (mDebugging)
|
if (mDebugging)
|
||||||
{
|
{
|
||||||
if (mcOperand.mVRegIdx == 227)
|
if (mcOperand.mVRegIdx == 7)
|
||||||
{
|
{
|
||||||
NOP;
|
NOP;
|
||||||
}
|
}
|
||||||
|
@ -7817,6 +7817,8 @@ void BeMCContext::DoInstCombinePass()
|
||||||
|
|
||||||
if ((vregInfoDest->mIsExpr) || (vregInfoCheck->mIsExpr))
|
if ((vregInfoDest->mIsExpr) || (vregInfoCheck->mIsExpr))
|
||||||
continue;
|
continue;
|
||||||
|
if ((vregInfoCheck->mForceMem) && (!vregInfoDest->mForceMem))
|
||||||
|
continue;
|
||||||
|
|
||||||
if ((!vregInfoDest->mForceMerge) && (!vregInfoDest->mIsRetVal))
|
if ((!vregInfoDest->mForceMerge) && (!vregInfoDest->mIsRetVal))
|
||||||
{
|
{
|
||||||
|
@ -15853,7 +15855,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 == "?GetVal@TestProgram@BeefTest@bf@@CATint@@XZ");
|
//mDebugging = (function->mName == "?Negate__im@TimeSpan@System@bf@@SA?AU?$Result@VTimeSpan@System@bf@@@23@_J@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