From 84fe2f60d5c6a25fa73d081cc90ee858ebca821d Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Tue, 19 Dec 2023 16:32:33 +0000 Subject: 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 --- ethosu/vela/live_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1