diff --git a/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp b/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp index 3640f66d5b..8448cf00b1 100644 --- a/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp +++ b/FEXCore/Source/Interface/IR/Passes/ConstProp.cpp @@ -16,7 +16,6 @@ desc: ConstProp, ZExt elim, const pooling, fcmp reduction, const inlining #include #include #include -#include #include #include @@ -79,15 +78,8 @@ class ConstProp final : public FEXCore::IR::Pass { fextl::unordered_map ConstPool; - // Pool inline constant generation. These are typically very small and pool efficiently. - fextl::robin_map InlineConstantGen; Ref CreateInlineConstant(IREmitter* IREmit, uint64_t Constant) { - const auto it = InlineConstantGen.find(Constant); - if (it != InlineConstantGen.end()) { - return it->second; - } - auto Result = InlineConstantGen.insert_or_assign(Constant, IREmit->_InlineConstant(Constant)); - return Result.first->second; + return IREmit->_InlineConstant(Constant); } bool SupportsTSOImm9 {}; const FEXCore::CPUIDEmu* CPUID; @@ -577,8 +569,6 @@ void ConstProp::ConstantPropagation(IREmitter* IREmit, const IRListView& Current } void ConstProp::ConstantInlining(IREmitter* IREmit, const IRListView& CurrentIR) { - InlineConstantGen.clear(); - for (auto [CodeNode, IROp] : CurrentIR.GetAllCode()) { switch (IROp->Op) { case OP_LSHR: