mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 06:51:18 +12:00
PPCRec: Dead code elimination + reintroduce pre-rework optimizations
This commit is contained in:
parent
c419bfc451
commit
f55b842773
11 changed files with 930 additions and 316 deletions
|
@ -2935,6 +2935,10 @@ void PPCRecompiler_HandleCycleCheckCount(ppcImlGenContext_t& ppcImlGenContext, P
|
|||
splitSeg->SetLinkBranchTaken(exitSegment);
|
||||
|
||||
exitSegment->AppendInstruction()->make_macro(PPCREC_IML_MACRO_LEAVE, basicBlockInfo.startAddress, 0, 0, IMLREG_INVALID);
|
||||
|
||||
cemu_assert_debug(splitSeg->nextSegmentBranchNotTaken);
|
||||
// let the IML optimizer and RA know that the original segment should be used during analysis for dead code elimination
|
||||
exitSegment->SetNextSegmentForOverwriteHints(splitSeg->nextSegmentBranchNotTaken);
|
||||
}
|
||||
|
||||
void PPCRecompiler_SetSegmentsUncertainFlow(ppcImlGenContext_t& ppcImlGenContext)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue