From 37108058d11aed7fe919d227192c7c2faed45018 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 26 Apr 2021 19:24:39 -0700 Subject: [PATCH] Removes some unnecessary branching checks It doesn't actually matter if the invalid node has has its linked list nodes changed Faster to just set than to check while in a tight loop --- External/FEXCore/include/FEXCore/IR/IR.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/External/FEXCore/include/FEXCore/IR/IR.h b/External/FEXCore/include/FEXCore/IR/IR.h index b2d0a4fd6..adf8ec80d 100644 --- a/External/FEXCore/include/FEXCore/IR/IR.h +++ b/External/FEXCore/include/FEXCore/IR/IR.h @@ -240,13 +240,11 @@ class OrderedNode final { } static void SetPrevious(uintptr_t Base, value_type Node, value_type New) { - if (Node.NodeOffset == 0) return; OrderedNode *RealNode = Node.GetNode(Base); RealNode->Header.Previous = New; } static void SetNext(uintptr_t Base, value_type Node, value_type New) { - if (Node.NodeOffset == 0) return; OrderedNode *RealNode = Node.GetNode(Base); RealNode->Header.Next = New; }