Skip to content

Commit

Permalink
Merge pull request bytecodealliance#1710 from fitzgen/remove-unused-l…
Browse files Browse the repository at this point in the history
…hs-member

peepmatic: remove unused member from `PeepholeOptimizer`
  • Loading branch information
fitzgen committed May 14, 2020
2 parents 27d3bf9 + e9ef8ea commit 3c0b64f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion cranelift/peepmatic/crates/runtime/src/optimizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl PeepholeOptimizations {
PeepholeOptimizer {
peep_opt: self,
instr_set,
left_hand_sides: vec![],
right_hand_sides: vec![],
actions: vec![],
backtracking_states: vec![],
Expand Down
4 changes: 0 additions & 4 deletions cranelift/peepmatic/crates/runtime/src/optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ where
{
pub(crate) peep_opt: &'peep PeepholeOptimizations,
pub(crate) instr_set: I,
pub(crate) left_hand_sides: Vec<Part<I::Instruction>>,
pub(crate) right_hand_sides: Vec<Part<I::Instruction>>,
pub(crate) actions: Vec<Action>,
pub(crate) backtracking_states: Vec<(State, usize)>,
Expand All @@ -41,15 +40,13 @@ where
let PeepholeOptimizer {
peep_opt,
instr_set: _,
left_hand_sides,
right_hand_sides,
actions,
backtracking_states,
} = self;
f.debug_struct("PeepholeOptimizer")
.field("peep_opt", peep_opt)
.field("instr_set", &"_")
.field("left_hand_sides", left_hand_sides)
.field("right_hand_sides", right_hand_sides)
.field("actions", actions)
.field("backtracking_states", backtracking_states)
Expand Down Expand Up @@ -485,7 +482,6 @@ where

self.backtracking_states.clear();
self.actions.clear();
self.left_hand_sides.clear();
self.right_hand_sides.clear();

let mut r#final = None;
Expand Down

0 comments on commit 3c0b64f

Please sign in to comment.