x87OptimizationPass: Fixes {Inc,Dec}StackPop

On the slow path these were pushing and popping in the wrong direction.
Switch them around to ensure the unittests work.
This commit is contained in:
Ryan Houdek committed 2025-04-02 14:25:02 -07:00
1 parent 0256d6820c
commit cebcf50c65
1 file changed
+2 -2
@@ -1044,7 +1044,7 @@ void X87StackOptimization::Run(IREmitter* Emit) {
case OP_INCSTACKTOP: {
if (SlowPath) {
UpdateTopForPush_Slow();
UpdateTopForPop_Slow();
} else {
StackData.rotate(false);
}
@@ -1053,7 +1053,7 @@ void X87StackOptimization::Run(IREmitter* Emit) {
case OP_DECSTACKTOP: {
if (SlowPath) {
UpdateTopForPop_Slow();
UpdateTopForPush_Slow();
} else {
StackData.rotate(true);
}