Skip to content

Commit 0fe5b4d

Browse files
committed
Remove unused clobbers vector
1 parent 23678ec commit 0fe5b4d

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/ion/data_structures.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ pub struct Env<'a, F: Function> {
293293
pub vreg_regs: Vec<VReg>,
294294
pub pregs: Vec<PRegData>,
295295
pub allocation_queue: PrioQueue,
296-
pub clobbers: Vec<Inst>, // Sorted list of insts with clobbers.
297296
pub safepoints: Vec<Inst>, // Sorted list of safepoint insts.
298297
pub safepoints_per_vreg: HashMap<usize, HashSet<Inst>>,
299298

src/ion/liveranges.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ impl<'a, F: Function> Env<'a, F> {
448448
// For each instruction, in reverse order, process
449449
// operands and clobbers.
450450
for inst in insns.rev().iter() {
451-
if self.func.inst_clobbers(inst).len() > 0 {
452-
self.clobbers.push(inst);
453-
}
454-
455451
// Mark clobbers with CodeRanges on PRegs.
456452
for i in 0..self.func.inst_clobbers(inst).len() {
457453
// don't borrow `self`
@@ -1234,7 +1230,6 @@ impl<'a, F: Function> Env<'a, F> {
12341230
}
12351231
}
12361232

1237-
self.clobbers.sort_unstable();
12381233
self.blockparam_ins.sort_unstable();
12391234
self.blockparam_outs.sort_unstable();
12401235
self.prog_move_srcs.sort_unstable_by_key(|(pos, _)| *pos);

src/ion/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ impl<'a, F: Function> Env<'a, F> {
6262
vreg_regs: Vec::with_capacity(n),
6363
pregs: vec![],
6464
allocation_queue: PrioQueue::new(),
65-
clobbers: vec![],
6665
safepoints: vec![],
6766
safepoints_per_vreg: HashMap::new(),
6867
spilled_bundles: vec![],

0 commit comments

Comments
 (0)