diff --git a/FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp b/FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp index 61f735296..b2547e20d 100644 --- a/FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp +++ b/FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp @@ -248,7 +248,7 @@ private: return nullptr; }; - PhysicalRegister DecodeSRAReg(const IROp_Header* IROp, Ref Node) { + PhysicalRegister DecodeSRAReg(const IROp_Header* IROp) { RegisterClassType Class {}; uint8_t Reg {}; @@ -260,7 +260,6 @@ private: Class = Op->Class; Reg = Op->Reg; } else if (IROp->Op == OP_STOREREGISTER) { - LOGMAN_THROW_A_FMT(IROp->Op == OP_STOREREGISTER, "node is SRA"); const IROp_StoreRegister* Op = IROp->C(); Class = Op->Class; @@ -520,7 +519,7 @@ void ConstrainedRAPass::Run(IREmitter* IREmit_) { // each register, used below. Since we initialized Class->Available, // RegToSSA is otherwise undefined so we can stash our temps there. if (auto Node = DecodeSRANode(IROp, CodeNode); Node != nullptr) { - auto Reg = DecodeSRAReg(IROp, Node); + auto Reg = DecodeSRAReg(IROp); PreferredReg[IR->GetID(Node).Value] = Reg; GetClass(Reg)->RegToSSA[Reg.Reg] = CodeNode; @@ -567,7 +566,7 @@ void ConstrainedRAPass::Run(IREmitter* IREmit_) { // Static registers must be consistent at SRA load/store. Evict to ensure. if (auto Node = DecodeSRANode(IROp, CodeNode); Node != nullptr) { - auto Reg = DecodeSRAReg(IROp, Node); + auto Reg = DecodeSRAReg(IROp); RegisterClass* Class = &Classes[Reg.Class]; if (!(Class->Available & (1u << Reg.Reg))) {