From b982898c98fa1fcf080cb0a4108f0f920fa86f78 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Fri, 19 Jan 2024 14:56:02 +0000 Subject: Revert "MLBEDSW-8468: overlaps_ranges does not treat the live range end time as inclusive" This reverts commit dbe4df4ccddafac9cbc345a4a03a42c241248e88. - The previous patch had a mostly negative effect on performance Change-Id: I4003d50b07de9c63d9001ceb0a3a0bc966c0b861 Signed-off-by: Tim Hall --- ethosu/vela/live_range.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethosu/vela/live_range.py b/ethosu/vela/live_range.py index 824c9ce..0c8215d 100644 --- a/ethosu/vela/live_range.py +++ b/ethosu/vela/live_range.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2020-2023 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: Copyright 2020-2024 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 # @@ -76,7 +76,7 @@ class LiveRange: self.mem_area = MemArea.Sram def overlaps_ranges(self, other): - return max(self.start_time, other.start_time) <= min(self.end_time, other.end_time) + return max(self.start_time, other.start_time) < min(self.end_time, other.end_time) def overlaps_address(self, other): # Returns the first pair of tensors in this LiveRange and 'other' which have -- cgit v1.2.1