MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / is_empty

Method is_empty

src/internal/live_range.rs:177–179  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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> {

Callers 15

resolveMethod · 0.45
dumpMethod · 0.45
coalesce_valuesMethod · 0.45
all_value_setsMethod · 0.45
take_all_value_setsMethod · 0.45
build_segmentsMethod · 0.45
compute_entry_statesMethod · 0.45
propagate_to_succsMethod · 0.45
clobber_unitMethod · 0.45
orderMethod · 0.45
must_spillMethod · 0.45
count_live_instsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected