From 3b0a9b9ecfdbf4a39806dbfc554826c3e3383c77 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 26 Mar 2018 21:58:46 -0700 Subject: [PATCH] Remove an unused argument. --- lib/cretonne/src/context.rs | 2 +- lib/cretonne/src/simple_gvn.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cretonne/src/context.rs b/lib/cretonne/src/context.rs index c6018dcd9e..8358f21545 100644 --- a/lib/cretonne/src/context.rs +++ b/lib/cretonne/src/context.rs @@ -191,7 +191,7 @@ impl Context { /// Perform simple GVN on the function. pub fn simple_gvn<'a, FOI: Into>>(&mut self, fisa: FOI) -> CtonResult { - do_simple_gvn(&mut self.func, &mut self.cfg, &mut self.domtree); + do_simple_gvn(&mut self.func, &mut self.domtree); self.verify_if(fisa) } diff --git a/lib/cretonne/src/simple_gvn.rs b/lib/cretonne/src/simple_gvn.rs index dd0fb3b1aa..1cd82e4b2c 100644 --- a/lib/cretonne/src/simple_gvn.rs +++ b/lib/cretonne/src/simple_gvn.rs @@ -1,7 +1,6 @@ //! A simple GVN pass. use cursor::{Cursor, FuncCursor}; -use flowgraph::ControlFlowGraph; use dominator_tree::DominatorTree; use ir::{InstructionData, Function, Inst, Opcode, Type}; use scoped_hash_map::ScopedHashMap; @@ -17,9 +16,8 @@ fn trivially_unsafe_for_gvn(opcode: Opcode) -> bool { /// Perform simple GVN on `func`. /// -pub fn do_simple_gvn(func: &mut Function, cfg: &mut ControlFlowGraph, domtree: &mut DominatorTree) { +pub fn do_simple_gvn(func: &mut Function, domtree: &mut DominatorTree) { let _tt = timing::gvn(); - debug_assert!(cfg.is_valid()); debug_assert!(domtree.is_valid()); let mut visible_values: ScopedHashMap<(InstructionData, Type), Inst> = ScopedHashMap::new();