From 608b4fb6c7106efc266eab48c04753903ebe5511 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 22 Feb 2024 14:29:24 -0800 Subject: [PATCH] Remove some branches --- ConflictSet.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 5637eed..f077080 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1376,14 +1376,7 @@ bool checkRangeRead(Node *n, std::span begin, break; } - if (!checkRangeLeftSide.ok) { - return false; - } - if (!checkRangeRightSide.ok) { - return false; - } - - return true; + return checkRangeLeftSide.ok & checkRangeRightSide.ok; } // Returns a pointer to the newly inserted node. caller is reponsible for