diff options
author | Tim Hall <tim.hall@arm.com> | 2024-01-19 14:56:02 +0000 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2024-01-26 10:16:18 +0000 |
commit | b982898c98fa1fcf080cb0a4108f0f920fa86f78 (patch) | |
tree | b5b6cb1034d3c0e639e3e4dfe47a9693d214131b /ethosu/vela/live_range.py | |
parent | e4d0dbfa29a4a868ee1f0720d64e720d2655d0bc (diff) | |
download | ethos-u-vela-b982898c98fa1fcf080cb0a4108f0f920fa86f78.tar.gz |
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>
Diffstat (limited to 'ethosu/vela/live_range.py')
-rw-r--r-- | ethosu/vela/live_range.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/live_range.py b/ethosu/vela/live_range.py index 824c9ce9..0c8215da 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 @@ 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 |