Returns the first instruction that this segment covers.
(self)
| 266 | |
| 267 | /// Returns the first instruction that this segment covers. |
| 268 | pub fn first_inst(self) -> Inst { |
| 269 | // This is normally where the live range starts, except if it starts |
| 270 | // with a fixed definition since the live range then starts on the |
| 271 | // next instruction. |
| 272 | if self.use_list.has_fixeddef() { |
| 273 | self.live_range.from.inst().prev() |
| 274 | } else { |
| 275 | self.live_range.from.inst() |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /// Number of live instructions covered by several non-overlapping segments. |
| 280 | /// |
no test coverage detected