aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2023-12-19 16:32:33 +0000
committerTim Hall <tim.hall@arm.com>2024-01-16 12:30:43 +0000
commit84fe2f60d5c6a25fa73d081cc90ee858ebca821d (patch)
tree82081c942b229bd07deb50d9e5ae8412cd76221e
parent37dbca2adad678acf16f8360b8e3647563dababe (diff)
downloadethos-u-vela-84fe2f60d5c6a25fa73d081cc90ee858ebca821d.tar.gz
MLBEDSW-8468: overlaps_ranges does not treat the live range end time as inclusive
- The issue is that live range start and end times are inclusive but the function to calculate is two ranges overlap treats them as exclusive - The fix is to change the comparison to be inclusive Change-Id: Iab5ceec7be2a5fdf0d6ecef81509a88c74e7108c Signed-off-by: Tim Hall <tim.hall@arm.com>
-rw-r--r--ethosu/vela/live_range.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/live_range.py b/ethosu/vela/live_range.py
index 0ccfc17..824c9ce 100644
--- a/ethosu/vela/live_range.py
+++ b/ethosu/vela/live_range.py
@@ -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