Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
drmortalwombat committed Mar 7, 2023
1 parent c397762 commit be15913
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 8 deletions.
50 changes: 50 additions & 0 deletions oscar64/NativeCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25615,6 +25615,53 @@ bool NativeCodeBasicBlock::OptimizeSimpleLoopInvariant(NativeCodeProcedure* proc
return lblock->OptimizeSimpleLoopInvariant(proc, this, eblock, full);
}

bool NativeCodeBasicBlock::OptimizeLoopCarryOver(void)
{
bool changed = false;

if (!mVisited)
{
mVisited = true;

if (mFalseJump)
{
NativeCodeBasicBlock* hblock = nullptr;

if (mBranch == ASMIT_BCC && mTrueJump->mLoopHead)
hblock = mTrueJump;
else if (mBranch == ASMIT_BCS && mFalseJump->mLoopHead)
hblock = mFalseJump;

if (hblock && hblock->mIns.Size() > 0 && hblock->mIns[0].mType == ASMIT_CLC && hblock->mNumEntries == 2)
{
NativeCodeBasicBlock* pblock;
if (hblock->mEntryBlocks[0] == this)
pblock = hblock->mEntryBlocks[1];
else
pblock = hblock->mEntryBlocks[0];

if (!pblock->mFalseJump)
{
pblock->mIns.Push(NativeCodeInstruction(ASMIT_CLC));
hblock->mIns.Remove(0);

pblock->mExitRequiredRegs += CPU_REG_C;
hblock->mEntryRequiredRegs += CPU_REG_C;
mExitRequiredRegs += CPU_REG_C;
changed = true;
}
}
}

if (mTrueJump && mTrueJump->OptimizeLoopCarryOver())
changed = true;
if (mFalseJump && mFalseJump->OptimizeLoopCarryOver())
changed = true;
}

return changed;
}

bool NativeCodeBasicBlock::RemoveSimpleLoopUnusedIndex(void)
{
bool changed = false;
Expand Down Expand Up @@ -37527,6 +37574,9 @@ void NativeCodeProcedure::Optimize(void)
} while (changed);
#endif

ResetVisited();
mEntryBlock->OptimizeLoopCarryOver();

ResetVisited();
NativeRegisterDataSet data;
mEntryBlock->ValueForwarding(this, data, true, true);
Expand Down
1 change: 1 addition & 0 deletions oscar64/NativeCodeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class NativeCodeBasicBlock
bool OptimizeSimpleLoopInvariant(NativeCodeProcedure* proc, bool full);
bool OptimizeSimpleLoopInvariant(NativeCodeProcedure* proc, NativeCodeBasicBlock * prevBlock, NativeCodeBasicBlock* exitBlock, bool full);
bool RemoveSimpleLoopUnusedIndex(void);
bool OptimizeLoopCarryOver(void);

bool OptimizeSimpleLoop(NativeCodeProcedure* proc, bool full);
bool SimpleLoopReversal(NativeCodeProcedure* proc);
Expand Down
2 changes: 1 addition & 1 deletion oscar64/oscar64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int main2(int argc, const char** argv)

#else
strcpy(strProductName, "oscar64");
strcpy(strProductVersion, "1.17.188");
strcpy(strProductVersion, "1.17.189");

#ifdef __APPLE__
uint32_t length = sizeof(basePath);
Expand Down
8 changes: 4 additions & 4 deletions oscar64/oscar64.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,17,188,0
PRODUCTVERSION 1,17,188,0
FILEVERSION 1,17,189,0
PRODUCTVERSION 1,17,189,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -43,12 +43,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "oscar64"
VALUE "FileDescription", "oscar64 compiler"
VALUE "FileVersion", "1.17.188.0"
VALUE "FileVersion", "1.17.189.0"
VALUE "InternalName", "oscar64.exe"
VALUE "LegalCopyright", "Copyright (C) 2021"
VALUE "OriginalFilename", "oscar64.exe"
VALUE "ProductName", "oscar64"
VALUE "ProductVersion", "1.17.188.0"
VALUE "ProductVersion", "1.17.189.0"
END
END
BLOCK "VarFileInfo"
Expand Down
6 changes: 3 additions & 3 deletions oscar64setup/oscar64setup.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -4962,15 +4962,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:oscar64"
"ProductCode" = "8:{73EA19D3-9D64-4228-B7C4-145167C1C866}"
"PackageCode" = "8:{D9206A10-2163-43EE-BC5D-FBC0769FF045}"
"ProductCode" = "8:{85311ED7-CC4D-4512-840D-20C87C74DAC0}"
"PackageCode" = "8:{84A20228-DD88-421A-9DE4-33A058638C87}"
"UpgradeCode" = "8:{9AB61EFF-ACAC-4079-9950-8D96615CD4EF}"
"AspNetVersion" = "8:2.0.50727.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.17.188"
"ProductVersion" = "8:1.17.189"
"Manufacturer" = "8:oscar64"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down

0 comments on commit be15913

Please sign in to comment.