Checks whether the `LiveRangeSegment` holds an empty range. Empty ranges are valid but have special semantics: no register needs to be allocated for them, but they may still hold useful information in the associated [`UseList`].
(self)
| 175 | /// be allocated for them, but they may still hold useful information in |
| 176 | /// the associated [`UseList`]. |
| 177 | pub fn is_empty(self) -> bool { |
| 178 | self.from >= self.to |
| 179 | } |
| 180 | |
| 181 | /// Returns the intersection of two ranges, or `None` if they don't overlap. |
| 182 | pub fn intersection(self, other: Self) -> Option<Self> { |
no outgoing calls
no test coverage detected