From b10ee675251fe1216f3b962b9bccc5b4eae64bc2 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 19 Nov 2021 12:19:37 -0800 Subject: [PATCH] RCLSE: Don't optimize through a BREAK irop The end of this optimization pass is getting to a bit long. It might be worth adding a new flag to IR ops soon for ops we can't optimize context loadstores through. --- .../Source/Interface/IR/Passes/DeadContextStoreElimination.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/External/FEXCore/Source/Interface/IR/Passes/DeadContextStoreElimination.cpp b/External/FEXCore/Source/Interface/IR/Passes/DeadContextStoreElimination.cpp index 4286bdd06..f32ec3bb8 100644 --- a/External/FEXCore/Source/Interface/IR/Passes/DeadContextStoreElimination.cpp +++ b/External/FEXCore/Source/Interface/IR/Passes/DeadContextStoreElimination.cpp @@ -662,7 +662,8 @@ bool RCLSE::RedundantStoreLoadElimination(FEXCore::IR::IREmitter *IREmit) { else if (IROp->Op == OP_STORECONTEXTINDEXED || IROp->Op == OP_LOADCONTEXTINDEXED || IROp->Op == OP_SYSCALL || - IROp->Op == OP_INLINESYSCALL) { + IROp->Op == OP_INLINESYSCALL || + IROp->Op == OP_BREAK) { // We can't track through these ResetClassificationAccesses(&LocalInfo); }