Skip to content

Commit a484803

Browse files
authored
don't optimize prologs/epilogues in OptimizePostIndexed (#114843)
1 parent 27d2321 commit a484803

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/coreclr/jit/emitarm64.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17391,6 +17391,12 @@ bool emitter::OptimizePostIndexed(instruction ins, regNumber reg, ssize_t imm, e
1739117391
return false;
1739217392
}
1739317393

17394+
if (emitComp->compGeneratingUnwindProlog || emitComp->compGeneratingUnwindEpilog)
17395+
{
17396+
// Don't remove instructions while generating "unwind" part of prologs or epilogs
17397+
return false;
17398+
}
17399+
1739417400
// Cannot allow post indexing if the load itself is already modifying the
1739517401
// register.
1739617402
regNumber loadStoreDataReg = emitLastIns->idReg1();

0 commit comments

Comments
 (0)