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 <tim.hall@arm.com>
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 <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2020-2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -76,7 +76,7 @@
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